[Haskell-cafe] How to decide if a number is an integer?

Henning Thielemann lemming at henning-thielemann.de
Tue Sep 29 12:35:09 EDT 2009


On Tue, 29 Sep 2009, Magicloud Magiclouds wrote:

> Hi,
>  In other weak-type language, `round i == i` would work. But in
> haskell, what should I do? Thanks.

Am I right, that you want to check whether a number is a square number?

http://www.haskell.org/haskellwiki/Generic_number_type#isSquare


More information about the Haskell-Cafe mailing list