[Haskell-cafe] C's fmod in Haskell
Jules Bean
jules at jellybean.co.uk
Mon Sep 17 09:18:33 EDT 2007
Peter Verswyvelen wrote:
> Maybe this is a stupid question, but I don't find something similar in
> Haskell.
>
> I find mod and rem, which work on integers. But I'm looking for a
> function similar to C's fmod.
>
> Of course I can write it myself, but I guess it must already exist under
> a different name?
There's one in Data.Fixed called mod'
Yes, that is an odd place for it :)
Jules
More information about the Haskell-Cafe
mailing list