Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- fromFormatN :: IsString s => FormatN -> s
- toFormatN :: (Eq s, IsString s) => s -> Int -> FormatN
- fixed :: Int -> Double -> Text
- comma :: Int -> Double -> Text
- expt :: Int -> Double -> Text
- dollar :: Double -> Text
- formatN :: FormatN -> Double -> Text
- precision :: (Int -> Double -> Text) -> Int -> [Double] -> [Text]
- formatNs :: FormatN -> [Double] -> [Text]
Documentation
fromFormatN :: IsString s => FormatN -> s Source #
precision :: (Int -> Double -> Text) -> Int -> [Double] -> [Text] Source #
Provide formatted text for a list of numbers so that they are just distinguished. 'precision commas 2 ticks' means give the tick labels as much precision as is needed for them to be distinguished, but with at least 2 significant figures, and format Integers with commas.