numeric-prelude-0.4.4: An experimental alternative hierarchy of numeric type classes
Copyright(c) Henning Thielemann 2006
Maintainernumericprelude@henning-thielemann.de
Stabilityprovisional
Portabilityrequires multi-parameter type classes
Safe HaskellNone
LanguageHaskell98

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

Conversion

other number types

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

fromFixedPoint :: Integer -> Integer -> Integer -> Integer Source #

denominator conversion

text

showPositionalDec :: Integer -> Integer -> String Source #

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

Additive

Ring

Field

Algebra

Transcendental