ekmett / rounded

MPFR bindings for Haskell
http://hackage.haskell.org/package/rounded
BSD 3-Clause "New" or "Revised" License
33 stars 13 forks source link

properFraction is currently undefined #18

Open ekmett opened 10 years ago

ekmett commented 10 years ago

mpfr_get_z_2exp should be able to get the significand as an Integer, and with a little bit of multiplication by the 2^exponent we could solve this.

claudeha commented 6 years ago

properFraction is currently defined using modf, but I think it needs a test suite to be sure whether it is correct w.r.t. Haskell2010 expectations on the result.