views:

35

answers:

2

Number type variable for eg xxxx=0.200000585858;

how do i convert xxxx value as 0.200.......thnaks

+2  A: 

please see Number::toFixed.

back2dos
A: 

This should also work. But your question wasn't specific on wether you wanted the number to be rounded or not.

Math.round(xxxx*1000)/1000
Sandro
ok...ya ya right i have asked new one
dpaksp