Float package:hosc

Type generalised Float.
>>> float (1::Int) == float (1::Double)
True
>>> floatRange (undefined::Float)
(-125,128)
>>> isInfinite (d_float (float (encodeFloat 1 256 :: Double)))
True
Parser for non-negative float.
Datum as Floating if Int32, Int64, Float, Double or TimeStamp.
>>> let d = [Int32 5,Int64 5,Float 5,Double 5,TimeStamp 5]

>>> mapMaybe datum_floating d == replicate 5 (5::Double)
True
Parser for non-negative float.
Variant of showFFloat that deletes trailing zeros.
>>> map (showFloatWithPrecision (Just 4)) [1, 2.0, pi]
["1.0","2.0","3.1416"]