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

0

1 Answer 1

0

You can use parseFloat('41803.96000000')

Sign up to request clarification or add additional context in comments.

1 Comment

Sorry it is a typo (kinda)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.