SAP Knowledge Base Article - Public

3420305 - Wrong decimal precision with the table frontend calculation formulas in SAP Analytics Cloud Planning (SAC)

Symptom

  • You have a value with decimal values in cell A and a different value with decimal places in cell B
  • You have a table formula / frontend calculation.
  • The result value contains more than 7 decimal places and has a very small deviation.

For example, cell A is 143458.59; cell B is 159035.68; the table formula is cell A - cell B; The expected result is -15577.09 but the actual result is -15577.08999999999.

Environment

  • SAP Analytics Cloud (Enterprise) 

Cause

It is related to the JS floating point issue (also mentioned here https://mathjs.org/docs/datatypes/numbers.html#roundoff-errors).

Resolution

Possible workaround: define the FEC using the ROUND formula, for example, =round((A2-B2),5).

Meanwhile, the SAC development team plan to make code changes to round the result to the expected decimal place.

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Sac, Acquisition, Model, Connect, Story, Tenant, Import, Failed, Using, Working, SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Connection, Sac, Connector, Live, Acquisition, Up, Set, setup, Model, BW, Connect, Story, Tenant, Import, Failed, Using, Working, SAML, SSO, sapanalyticscloud, sap analytical cloud, sap analytical cloud, SAC, sap analyst cloud, connected, failure, stopped, sap analyst cloud, https://hcs.cloud.sap, https://hanacloudservices.cloud.sap, https://cloudanalytics.accounts.ondemand.com, https://hanacloudservices-us.accounts.ondemand.com, https://www.sap.com, https://help.sap.com, predictive analytics (analysis), data analysis (analytics) tools, analytics tools, sap analytics cloud, data literacy, advanced analytics, data democratization, analytics software, real time analytics, self service analytics, advanced data analytics, analytics as a service, analytics cloud / cloud analytics, saas analytics, cloud bi, enterprise planning, cloud data analytics, cloud based analytics, analytics cloud platform, modern analytics, real time analysis, cloud analytics solution(s), what is sap analytics cloud, cloud analytics tools, analytics in the cloud, cloud analytics software, FEC, precise, precision, accurate, accuracy, round off, rounding off, round-off, rounded, float , KBA , LOD-ANA-TAB , Table , Problem

Product

SAP Analytics Cloud 1.0