number-show-0.1.0.0: Flexible and accurate (for a given precision) numerical->string conversion

Copyright(c) Justus Sagemüller 2016
LicenseGPL v3
Maintainer(@) jsagemue $ uni-koeln.de
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Show.Number

Description

 

Documentation

type Δ n = n Source

scaledIntPart :: forall n. Lens' (NumShowComponents n) Int Source

scaleExponent :: forall n. Lens' (NumShowComponents n) Int Source

remainder :: forall n n. Lens (NumShowComponents n) (NumShowComponents n) n n Source

isNegative :: forall n. Lens' (NumShowComponents n) Bool Source

preShowNum Source

Arguments

:: RealFloat n 
=> Δ n

Uncertainty allowance

-> Int

Basis

-> Int

Minimum magnitude of exponent to warrant scientific notation

-> n

Number to show

-> NumShowComponents n 

closeZero :: (Num a, Ord a) => a -> a -> a Source