Thank all of you for your opinon.
I'm not so sure there is still an issue in my case since we were dealing with $$ and then I was asked to round based on the 3rd (forgetting the 4th) decimal and then chop the 2 digits after the dot.
I guess my boss was feeling grumpy that day or I did confused...
Hello Rich..
I just modified a bit your HTML page
like this
<a href='javascript:revisedtotal2();alert(estimate)'>
and the alert gave me 80.
Would you please give more details of your problem ?
Good Luck!
Stef
Hello,
I am facing a problem when I try to round
1.8445 to 2 decimal.
Every where they tell you to perform
Math.round(1.8445*100)/100
wich is Math.round(184.45)=184
and 184/100=1.84
well where I went to school they always said that if you
want to round such a number you would start rounding by...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.