General information
Category:
Coding, syntax & commands
The result you get is affected by set("decimal").
For your particular case you should set decimal to 12 to get the same result.
However it looks like a bug. To reproduce it,try:
*---------------------
set deci to 12
?round(2390.00*.072500,2),round(2390.000000*0.072500,2) &&173.27,173.27
?round(173.275,2), round(173.275000000000,2) &&173.28,173.28
*--------------------
>>>>>>>>>>>>>>>>>>>>>>
If I do the following two commands I get different results. Am I missing something?
?round(2390.00*.072500,2)
173.28
?round(2390.000000*.072500,2)
173.27
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only