<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Odd place it is, indeed!<br>
<br>
QUOTE: "Data.Fixed... DESCRIPTION... This module defines a <a
href="file:///D:/app/ghc-6.6.1/doc/html/libraries/base/Fixed.html">Fixed</a>
type for fixed-precision arithmetic...*This module also contains
generalisations of div, mod, and divmod to work with any Real
instance.*"<br>
<br>
Thanks a lot. I wouldn't have found that myself ;-) <br>
<br>
Jules Bean wrote:
<blockquote cite="mid:46EE7EA9.7050808@jellybean.co.uk" type="cite">Peter
Verswyvelen wrote:
<br>
<blockquote type="cite">Maybe this is a stupid question, but I don't
find something similar in Haskell.
<br>
<br>
I find mod and rem, which work on integers. But I'm looking for a
function similar to C's fmod.
<br>
<br>
Of course I can write it myself, but I guess it must already exist
under a different name?
<br>
</blockquote>
<br>
There's one in Data.Fixed called mod'
<br>
<br>
Yes, that is an odd place for it :)
<br>
<br>
Jules
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>