purescript-contrib / purescript-formatters

Formatting and printing for numeric and date/time/interval values
Apache License 2.0
41 stars 29 forks source link

unformatNumber for very large numbers returns negative number #38

Closed bklaric closed 6 years ago

bklaric commented 6 years ago

I'm not sure if this is related to #16, but

> unformatNumber "0.0" "1507142848002.0"
(Right -390672894.0)

For reference, the number I'm trying to parse was created by now <#> unInstant <#> unwrap <#> show.

safareli commented 6 years ago

it's related

safareli commented 6 years ago

Will close this as duplicate, thanks for reporting tho!