| 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 |
| Previous by Date: | [Haskell-cafe] How to decide if a number is an integer?, Magicloud Magiclouds |
|---|---|
| Next by Date: | Re: [Haskell-cafe] Re: How to decide if a number is an integer?, Thomas DuBuisson |
| Previous by Thread: | [Haskell-cafe] How to decide if a number is an integer?, Magicloud Magiclouds |
| Next by Thread: | Re: [Haskell-cafe] Re: How to decide if a number is an integer?, Thomas DuBuisson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |