Measures Module
Converts a height, weight or time ValueUnit to numbers with a unit of measure and back, and converts a body surface area in m2 to a ValueUnit. Returns an error for a ValueUnit of another unit group, except the function toSingleIntDay, which raises an ArgumentException for a ValueUnit that is not a time.
Functions and values
| Function or value |
Description
|
Full Usage:
fromDecimalCm v
Parameters:
decimal<MeasureProduct<cm, MeasureOne>>
Returns: ValueUnit
|
|
Full Usage:
fromDecimalKg v
Parameters:
decimal<MeasureProduct<kg, MeasureOne>>
Returns: ValueUnit
|
|
Full Usage:
fromDecimalM2 v
Parameters:
decimal<MeasureProduct<bsa, MeasureOne>>
Returns: ValueUnit
|
|
|
|
|
|
Full Usage:
fromIntMonth v
Parameters:
int<MeasureProduct<month, MeasureOne>>
Returns: ValueUnit
|
|
|
|
|
|
|
|
Full Usage:
toDecimalCm
Returns: ValueUnit -> Result<decimal<MeasureProduct<cm, MeasureOne>> array, string>
|
|
Full Usage:
toDecimalKg
Returns: ValueUnit -> Result<decimal<MeasureProduct<kg, MeasureOne>> array, string>
|
|
Full Usage:
toDecimalMeter
Returns: ValueUnit -> Result<decimal<MeasureProduct<m, MeasureOne>> array, string>
|
|
|
|
Full Usage:
toIntDay
Returns: ValueUnit -> Result<int<MeasureProduct<day, MeasureOne>> array, string>
|
|
Full Usage:
toIntGram
Returns: ValueUnit -> Result<int<MeasureProduct<gram, MeasureOne>> array, string>
|
|
Full Usage:
toIntMonth
Returns: ValueUnit -> Result<int<MeasureProduct<month, MeasureOne>> array, string>
|
|
Full Usage:
toIntWeek
Returns: ValueUnit -> Result<int<MeasureProduct<week, MeasureOne>> array, string>
|
|
Full Usage:
toIntYear
Returns: ValueUnit -> Result<int<MeasureProduct<year, MeasureOne>> array, string>
|
|
Full Usage:
toMeasure group brTo toMeasure u s vu
Parameters:
Group
brTo : BigRational -> 'a
toMeasure : 'a -> 'b
u : Unit
s : 'c
vu : ValueUnit
Returns: Result<'b array, string>
Modifiers: inline Type parameters: 'a, 'b, 'c |
|
Full Usage:
toSingleIntDay vu
Parameters:
ValueUnit
Returns: int<MeasureProduct<day, MeasureOne>>
|
Converts a time value to whole days, rounded toward zero, and returns the first value. Raises an ArgumentException for a value that is not a time.
|
GenPRES