a                formula       b
31,283,700,000   round(a,-6)   31,284,000,000
60,204,605       round(a,-4)   60,200,000
I have an excel formula to process the currency value, but I have difficulties to achieve the same result by using javascript, any ideas to solve this?
Thanks.
 
     
     
     
    