Modulenumeric-prelude-0.4.4Haskell98
Number.FixedPoint
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
- value fromFloat
- value fromFixedPoint
- value showPositionalDec
- value showPositionalHex
- value showPositionalBin
- value showPositionalBasis
- value liftShowPosToInt
- value toPositional
- value add
- value sub
- value mul
- value divide
- value recip
- value magnitudes
- value sqrt
- value root
- value evalPowerSeries
- value cos
- value sin
- value tan
- value arctanSmall
- value arctan
- value piConst
- value expSmall
- value eConst
- value recipEConst
- value exp
- value approxLogBase
- value lnSmall
- value ln
- Packagenumeric-prelude-0.4.4
- Exports30
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceFixedPoint.hs
Conversion
other number types
denominator conversion
text
very efficient because it can make use of the decimal output of show