numeric-limits-0.1.0.0: Various floating point limit related constants.

Safe HaskellSafe-Infered

Numeric.Limits

Contents

Description

Various floating point limit related numerical constants.

Synopsis

Significant digits

digits10 :: RealFloat a => a -> IntSource

The number of decimal digits that the type can represent without loss of precision.

Minimum difference

epsilon :: RealFloat a => aSource

The difference between 1 and the smallest value greater than 1 that is representable for the type.

Extreme finite values

maxValue :: RealFloat a => aSource

The maximum finite value for the type.

minValue :: RealFloat a => aSource

The minimum (positive) normalized value for the type.

Abnormal values

infinity :: RealFloat a => aSource

Infinity value if the type supports it.

nan :: RealFloat a => aSource

Not-a-number value if the type supports it.