Haskell - how can I check if number is Double/Float?

Posted by MMM on Stack Overflow See other posts from Stack Overflow or by MMM
Published on 2010-05-22T22:19:43Z Indexed on 2010/05/22 22:30 UTC
Read the original article Hit count: 112

Filed under:

I would like to do smth like:

x `mod` 1.0 == 0 // => int

but it seems mod works only for int... help!

© Stack Overflow or respective owner

Related posts about haskell