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

Portabilityrequires multi-parameter type classes
Stabilityprovisional
Maintainernumericprelude@henning-thielemann.de

Number.FixedPoint

Contents

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

fromFixedPoint :: Integer -> Integer -> Integer -> IntegerSource

denominator conversion

text

showPositionalDec :: Integer -> Integer -> StringSource

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

Additive

Ring

Field

Algebra

Transcendental