[Haskell-cafe] Why is toRational a method of Real?
Brandon S Allbery KF8NH
allbery at ece.cmu.edu
Thu Aug 5 11:18:21 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/5/10 05:47 , David Virebayre wrote:
> On Thu, Aug 5, 2010 at 11:35 AM, Henning Thielemann
> <lemming at henning-thielemann.de> wrote:
>> What else shall a rounding function return if not integers?
>
> Getting from 29.84645 to 29.85 isn't rounding ?
It is, but it's also easy to achieve given round-to-integer.
- --
brandon s. allbery [linux,solaris,freebsd,perl] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxa1j0ACgkQIn7hlCsL25UKfQCggmZID1fCQ6VuqysRp4eAGtk2
K8MAmwWstczYxKVEQzDUZghXTy8aMkYM
=f4L6
-----END PGP SIGNATURE-----
More information about the Haskell-Cafe
mailing list