GangWU
07-16-2003, 08:36 AM
In my code I did following operation:
0.002454*100
the result is 0.24540001.
How can I avoid this?
Thanks.
0.002454*100
the result is 0.24540001.
How can I avoid this?
Thanks.
|
Click to See Complete Forum and Search --> : Wrong result of multiplication GangWU 07-16-2003, 08:36 AM In my code I did following operation: 0.002454*100 the result is 0.24540001. How can I avoid this? Thanks. pyro 07-16-2003, 09:21 AM Use toFixed(x) where x is the number of digits after the decimal places... webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |