HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulenumeric-prelude-0.4.4Haskell98

Number.Physical.Show

Convert a physical value to a human readable string.

  • 10 values
valueshowNat :: (Ord i, Show v, C a, Ord a, C a v) => T i a -> T i v -> String
#

Show the physical quantity in a human readable form with respect to a given unit data base.

valueshowSplit
  1. :: (Ord i, Show v, C a, Ord a, C a v)
  2. => T i a
  3. -> T i v
  4. -> (v, String)
#

Returns the rescaled value as number and the unit as string. The value can be used re-scale connected values and display them under the label of the unit

valuechooseScale
  1. :: (Ord i, Show v, Ord a, C a, C a v)
  2. => v
  3. -> UnitSet i a
  4. -> (v, Scale a)
#

Choose a scale where the number becomes handy and return the scaled number and the corresponding scale.