|
| Number.Physical.Show | | Portability | multi-parameter type classes (VectorSpace.hs, Normalization.hs) | | Stability | provisional | | Maintainer | numericprelude@henning-thielemann.de |
|
|
|
| Description |
| Convert a physical value to a human readable string.
|
|
| Synopsis |
|
| mulPrec :: Int | | | showNat :: (Ord i, Show v, C a, Ord a, C a v) => T i a -> T i v -> String | | | showSplit :: (Ord i, Show v, C a, Ord a, C a v) => T i a -> T i v -> (v, String) | | | showScaled :: (Ord i, Show v, Ord a, C a, C a v) => v -> [UnitSet i a] -> (v, String) | | | chooseScale :: (Ord i, Show v, Ord a, C a, C a v) => v -> UnitSet i a -> (v, Scale a) | | | showUnitPart :: Bool -> Bool -> Scale a -> String | | | defScale :: UnitSet i v -> Scale v | | | findCloseScale :: (Ord a, C a) => a -> [Scale a] -> Scale a | | | totalDefScale :: C a => T i a -> a | | | getUnit :: C a => String -> T i a -> T i a |
|
|
| Documentation |
|
|
|
|
| Show the physical quantity in a human readable form
with respect to a given unit data base.
|
|
|
| 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
|
|
|
|
|
| Choose a scale where the number becomes handy
and return the scaled number and the corresponding scale.
|
|
|
|
|
|
|
|
| totalDefScale :: C a => T i a -> a | Source |
|
| unused
|
|
|
| unused
|
|
| Produced by Haddock version 2.6.0 |