rounding number to a given decimal length
Posted: Sun Dec 12, 2004 2:13 pm
How can I round a number to two decimal points.
For example the following code returns the value 10:
I want round this to a two decimal point number. I suppose the return the value of 10.46
Thanks
For example the following code returns the value 10:
- Code: Select all
Math.round(10.455)
I want round this to a two decimal point number. I suppose the return the value of 10.46
Thanks