Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- An interface for floating-point data, which provides an alterative to
Show
.
Synopsis
- class ShowFloat a where
- showsFloat :: (Double -> ShowS) -> a -> ShowS
- showsFloatToN' :: RealFloat a => NDecimalDigits -> a -> ShowS
- showsFloatToN :: ShowFloat a => NDecimalDigits -> a -> ShowS
Type-classes
class ShowFloat a where Source #
An alternative to Show
, for floating-point data.
Instances
Functions
showsFloatToN' :: RealFloat a => NDecimalDigits -> a -> ShowS Source #
Render the specified data to the specified number of decimal digits.
showsFloatToN :: ShowFloat a => NDecimalDigits -> a -> ShowS Source #
Render the specified data to the specified number of decimal digits.