tc39 / proposal-number-fromstring

{BigInt,Number}.fromString(string, radix)
https://mathiasbynens.github.io/proposal-number-fromstring/
65 stars 7 forks source link

Consider parsing exponential notation #10

Closed domenic closed 6 years ago

domenic commented 6 years ago

As it stands, Number.fromString(1e100.toString()) will give 1 (or an error, if #5 is fixed).

I think it should instead parse the exponential notation.

mathiasbynens commented 6 years ago

The intention is to support exponential notation. I’m closing this in favor of #16, but feel free to reopen if you think this should be discussed separately.