jquery - Round 4 numbers after point for float value -


this question has answer here:

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