haskell-cafe@haskell.org
[Top] [All Lists]

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

Subject: [Haskell-cafe] Re: How to decide if a number is an integer?
From: Magicloud Magiclouds
Date: Tue, 29 Sep 2009 14:11:07 +0800
Hi,
  Here is an example:
  let l = fun num in
  if isIntegral l
    then l
    else 0
  How to do the isIntegral thing?

On Tue, Sep 29, 2009 at 1:58 PM, Magicloud Magiclouds
<magicloud.magiclouds@xxxxxxxxx> wrote:
> 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@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe
<Prev in Thread] Current Thread [Next in Thread>