0 votes
70 views
asked in java script by (8.2k points)

Want to add the 2 number presicion.

10000

Becomes

100.00

Thanks

1 Answer

0 votes
answered by
Hi

   Try the below code

str.substring(0,str.length-numberdecimal)+'.'+str.substring(str.length-numberdecimal);

Categories

...