javascript parseFloat '500,000' returns 500 when I need 500000

前端 未结 7 1477
清酒与你
清酒与你 2020-11-30 05:52

How would it be a nice way of handling this?

I already thought on removing the comma and then parsing to float.

Do you know a better/cleaner way?

Th

相关标签:
7条回答
  • 2020-11-30 06:22

    Nope. Remove the comma.

    0 讨论(0)
提交回复
热议问题