SAP Knowledge Base Article - Public

2341306 - roundup result is wrong - roundup(1.3680/0.4560,0); results in 4 and should be 3

Symptom

Roundup instruction could return a bad value.

For example: This code returns 4 while the result of 1.368/0.456 is 3.

  • numbervar TOTO; TOTO:=1.368/0.456;
  • roundup(TOTO);

Same code with 1.371/0.457 or 1.365/0.455 works and return 3.

Environment

Crystal Reports XI R2, 2008, 2011, 2013 and 2016

Reproducing the Issue

Create this formula and place it onto the report:

numbervar TOTO;
TOTO:=1.3680/0.4560;

roundup(1.3680/0.4560,0);

The viewer shows 4

Resolution

This issue has been reproduced and will be escalated to R&D for a fix.

Keywords

Crystal Reports, roundup , KBA , BI-RA-CR , Crystal Reports designer or BusinessViews Manager , Problem

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports 2011 ; SAP Crystal Reports 2013 ; SAP Crystal Reports 2016 ; SAP Crystal Reports XI R2