|
|
|
Description |
Generic classes for floating point types. The interface is loosely based
off of the C math library.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Classification of floating point values.
| Constructors | FPInfinite | | FPNaN | | FPNormal | | FPSubNormal | | FPZero | |
| Instances | |
|
|
|
Class for types which can be rounded to integers. The rounding functions
in the Prelude are inadequate for floating point because they shoehorn their
results into an integral type.
Minimal complete definition: toIntegral and round.
| | Methods | | Discards the fractional component from a value. Results in Nothing
if the result cannot be represented as an integer, such as if the input
is infinite or NaN.
| | | | | | | | |
| | Instances | |
|
|
|
Class for floating point types (real or complex-valued).
Minimal complete definition: everything.
| | Methods | | | Instances | |
|
|
|
Class for real-valued floating point types.
Minimal complete definition: all except pi, infinity and nan.
| | Methods | | | | | nextafter :: a -> a -> a | Source |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | Instances | |
|
|
Produced by Haddock version 2.7.2 |