I automatically assumed it would return 5 or some random error number. But why exactly does it parse to 5 and on which languages. Is the compiler dumb enough to not assume its a double and i have to specify it as 0.000005D?
lt's apparently a js quirk, where the parsing function suddenly switches to scientific notation once a certain precision has been reached. However, this breaks the next step as it just stops parsing at the apparent end of the number, which is before the e.
View all comments
Show parent comment
26
u/FieryHammer Feb 03 '22
There was a post the other day here. Parsing that number like that will result in 5.