Post Reply 
CAS, negative numbers, and ROUND
09-14-2015, 02:07 AM
Post: #1
CAS, negative numbers, and ROUND
   

This doesn't look right, when compared to ROUND() in Home.

Firmware 8151.
Find all posts by this user
Quote this message in a reply
09-14-2015, 12:06 PM
Post: #2
RE: CAS, negative numbers, and ROUND
Xcas does the same thing:

   

I have no point or conclusion, however, just Xcas does the same thing.

-road
Find all posts by this user
Quote this message in a reply
09-14-2015, 04:53 PM (This post was last modified: 09-14-2015 05:18 PM by Helge Gabert.)
Post: #3
RE: CAS, negative numbers, and ROUND
Seems like one has to add 1 in order to get the correct result (assuming rounding to 0 significant digits is desired).

Take -0.2:

ROUND(-0.2) should result in -0.2.
ROUND(-0.2,0) should result in 0.
ROUND(-0.2,1) should result in -0.2
ROUND(-0.2,2) should result in -0.2
ROUND(-0.2,3) should result in -0.2

And that is what Home shows, but not CAS.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)