[Haskell-cafe] How to decide if a number is an integer?
Jimmy Hartzell
jim at shareyourgifts.net
Tue Sep 29 02:18:09 EDT 2009
Use properFraction:
http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v%3AproperFraction
> Hi,
> In other weak-type language, `round i == i` would work. But in
> haskell, what should I do? Thanks.
> --
> 竹å¯å²å¦¨æµæ°´è¿
> å±±é«åªé»éäºé£
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
More information about the Haskell-Cafe
mailing list