Safe Haskell | Safe |
---|---|
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
- type NDecimalDigits = Int
- showsFloatToN :: ShowFloat a => NDecimalDigits -> a -> ShowS
Type-classes
class ShowFloat a where Source #
An alternative to Show
, for floating-point data.
Instances
Real rankValue => ShowFloat (RankValues rankValue) Source # | |
Defined in BishBosh.Attribute.RankValues showsFloat :: (Double -> ShowS) -> RankValues rankValue -> ShowS Source # | |
Real criterionWeight => ShowFloat (CriteriaWeights criterionWeight) Source # | |
Defined in BishBosh.Input.CriteriaWeights showsFloat :: (Double -> ShowS) -> CriteriaWeights criterionWeight -> ShowS Source # | |
(Real criterionValue, Real weightedMean) => ShowFloat (WeightedMeanAndCriterionValues weightedMean criterionValue) Source # | |
Defined in BishBosh.Attribute.WeightedMeanAndCriterionValues showsFloat :: (Double -> ShowS) -> WeightedMeanAndCriterionValues weightedMean criterionValue -> ShowS Source # | |
(Enum x, Enum y, Ord x, Ord y, Real pieceSquareValue, Show pieceSquareValue) => ShowFloat (PieceSquareTable x y pieceSquareValue) Source # | |
Defined in BishBosh.Input.PieceSquareTable showsFloat :: (Double -> ShowS) -> PieceSquareTable x y pieceSquareValue -> ShowS 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 # | |
Defined in BishBosh.Input.EvaluationOptions showsFloat :: (Double -> ShowS) -> EvaluationOptions criterionWeight pieceSquareValue rankValue x y -> ShowS 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 # | |
Defined in BishBosh.Input.Options |
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.