HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulenumeric-prelude-0.4.4Haskell98

Number.Physical.Show

Convert a physical value to a human readable string.

Synopsis
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