How to round up number in javascript?

前端 未结 0 766
难免孤独
难免孤独 2020-11-30 12:24

I need to round up numbers for example :

  1. 540133 to 541000
  2. 270067 to 271000
  3. 196567 to 197000

My Method :

Math.roun         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题