0

So I'm getting this string '41803.96000000'

what i want to do is convert this to a number and it should be in the right format such as this example '41.96000000'

for anyone wondering this is the current bitcoin price which I'm getting from a binance WebSocket

Colingdb
  • 3
  • 2

1 Answers1

0

You can use parseFloat('41803.96000000')

Cheng Adrian
  • 177
  • 10