Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rounding for Negative numbers: Strange behavior inCRN

Status
Not open for further replies.

rangarn

Technical User
Apr 5, 2006
4
0
0
IN
Hi All,

I have tried 'ROUND' function in reportnet and I understand CRN uses even rounding.
But what I observed and do not understand is the strange way this works with negative numbers.

When the number is negative and the digit after the rounding digit is less than 5, CRN seems to subtract the rounding digit by 1.
For example for an input of -8.31, and round(number,0) the report shows -7. Whats even worse for -100.0, the rounding returns -99.

Am I doing something very wrong or is this the normal behavior with CRN?

Is there a work around for this?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top