ghcjs-base-0.2.0.0: base library for GHCJS
Data.JSString.RealFloat
Synopsis
data FPFormat Source
Control the rendering of floating point numbers.
Constructors
Scientific notation (e.g. 2.3e123).
2.3e123
Standard decimal notation.
Use decimal notation for values between 0.1 and 9,999,999, and scientific notation otherwise.
0.1
9,999,999
Instances
realFloat :: RealFloat a => a -> JSString Source
formatRealFloat :: RealFloat a => FPFormat -> Maybe Int -> a -> JSString Source
formatDouble :: FPFormat -> Maybe Int -> Double -> JSString Source
formatFloat :: FPFormat -> Maybe Int -> Float -> JSString Source