this question has answer here:
- how round number in javascript? 8 answers
i have float numbers : 0.24405750549007688
i convert -> 0.2441
how can jquery ?
0.24405750549007688.tofixed(4) "0.2441" <-- string parsefloat(0.24405750549007688.tofixed(4)) 0.2441 <-- number
Comments
Post a Comment