Number type variable for eg xxxx=0.200000585858;
how do i convert xxxx value as 0.200.......thnaks
Number type variable for eg xxxx=0.200000585858;
how do i convert xxxx value as 0.200.......thnaks
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