Question Javascript parseFloat Limit

salm2s

Honorable
Jul 21, 2017
266
6
10,815
Hi there,

So I am trying to get a price of a cryptocurrency to BTC. The sites API only provides the price in scientific notation (e.g 1.7e-7).

So i tried using parseFloat, however when doing so it only returns 1.7e-7. I decided to experiment a bit and found that the limit is e-5.

My question is: Is there a way to get past this limit? Or maybe can I use another function?

Thanks,
salm2s
 

Ralston18

Titan
Moderator
Do you have Windows 10 and its Calculator?

When you open the calculator there is a "hamburger" menu (three stacked bars) in the upper left corner.

Click the menu and you should be presented with a list of dedicated calculator functions.

Or just use Excel to do the calculations.