HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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