Logo GenPRES

Measures Module

Converts an integer to a weight in gram, a height in cm or an age part in years, months, weeks or days.

Functions and values

Function or value Description

toCm x

Full Usage: toCm x

Parameters:
    x : int

Returns: int<MeasureProduct<cm, MeasureOne>>
x : int
Returns: int<MeasureProduct<cm, MeasureOne>>

toDay x

Full Usage: toDay x

Parameters:
    x : int

Returns: int<MeasureProduct<day, MeasureOne>>
x : int
Returns: int<MeasureProduct<day, MeasureOne>>

toGram x

Full Usage: toGram x

Parameters:
    x : int

Returns: int<MeasureProduct<gram, MeasureOne>>
x : int
Returns: int<MeasureProduct<gram, MeasureOne>>

toMonth x

Full Usage: toMonth x

Parameters:
    x : int

Returns: int<MeasureProduct<month, MeasureOne>>
x : int
Returns: int<MeasureProduct<month, MeasureOne>>

toWeek x

Full Usage: toWeek x

Parameters:
    x : int

Returns: int<MeasureProduct<week, MeasureOne>>
x : int
Returns: int<MeasureProduct<week, MeasureOne>>

toYear x

Full Usage: toYear x

Parameters:
    x : int

Returns: int<MeasureProduct<year, MeasureOne>>
x : int
Returns: int<MeasureProduct<year, MeasureOne>>

Type something to start searching.