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?

Thanks,
Peter