Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- An interface for floating-point data, which provides an alterative to
Show
.
- class ShowFloat a where
- type NDecimalDigits = Int
- showsFloatToN :: ShowFloat a => NDecimalDigits -> a -> ShowS
Type-classes
class ShowFloat a where Source #
An alternative to Show
, for floating-point data.
Real rankValue => ShowFloat (RankValues rankValue) Source # | |
Real criterionWeight => ShowFloat (CriteriaWeights criterionWeight) Source # | |
(Real criterionValue, Real weightedMean) => ShowFloat (WeightedMeanAndCriterionValues weightedMean criterionValue) Source # | |
(Enum x, Enum y, Ord x, Ord y, Real pieceSquareValue, Show pieceSquareValue) => ShowFloat (PieceSquareTable x y pieceSquareValue) Source # | |
(Enum x, Enum y, Ord x, Ord y, Real criterionWeight, Real pieceSquareValue, Real rankValue, Show pieceSquareValue) => ShowFloat (EvaluationOptions criterionWeight pieceSquareValue rankValue x y) Source # | |
(Enum x, Enum y, Ord x, Ord y, Real criterionWeight, Real pieceSquareValue, Real rankValue, Show column, Show pieceSquareValue, Show row) => ShowFloat (Options column criterionWeight pieceSquareValue rankValue row x y) Source # | |
Types
Type-synonyms
type NDecimalDigits = Int Source #
A number of decimals digits.
Functions
showsFloatToN :: ShowFloat a => NDecimalDigits -> a -> ShowS Source #
Render the specified data to the specified number of decimal digits.