numeric-prelude-0.4.3: An experimental alternative hierarchy of numeric type classes

Copyright (c) Henning Thielemann 2006 numericprelude@henning-thielemann.de provisional requires multi-parameter type classes None Haskell98

Number.FixedPoint

Description

Fixed point numbers. They are implemented as ratios with fixed denominator. Many routines fail for some arguments. When they work, they can be useful for obtaining approximations of some constants. We have not paid attention to rounding errors and thus some of the trailing digits may be wrong.

Synopsis

## other number types

fromFloat :: C a => Integer -> a -> Integer Source #

denominator conversion

## text

very efficient because it can make use of the decimal output of show