does javascript equality for 2.0 === 2 - hold true for all browsers

后端 未结 0 417
走了就别回头了
走了就别回头了 2021-02-03 13:59

I want to write a function to trim additional decimal 0\'s from floating point numbers like 2.0, 5.00 but not 3.04.

so I wrote this:

const trimZeroFromDec         


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