purescript-deprecated/purescript-math

ceil, floor, round should be Number -> Int

Closed this issue · 4 comments

ceil, floor, round should be Number -> Int ?

Unfortunately not, as Ints are restricted to a 32 bit range (in the JS backend at least), but ceil, floor, and round can deal with integers-as-Number between -9,007,199,254,740,991 and 9,007,199,254,740,991.

well how can one convert Number to Int then?

I think this can be closed.