Rounding Numbers to the Hundredths Position

Enter Number Here:     1) The First input position is to enter the number that you want to round.
2) The Second input position truncates the number to the hundredths position.
3) The Third input position returns the position of the decimal point using the indexOf() method.
4) The Fourth input position returns the number in the thousandths position by using the charAt() method with the number returned from the indexOf()+3.
5) The Fifth input position returns the final number.
Truncated Number:
Decimal position:
Number in 0.001 position:
Final Number:



Now check out this script using calculations.