purescript/purescript-numbers

Data.Number.fromString should use the Number constructor instead of parseFloat

natefaubion opened this issue · 0 comments

Data.Number.fromString has a weird JS-specific caveat about trailing non-numeric characters due to the specifics of parseFloat. Should we use the Number(str) constructor instead to avoid this oddity?