[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