unitelabs.labware.math.units
Attributes
- Name
Number
- Type
- Value
= typing.Union[str, int, float, tuple[int, collections.abc.Sequence[int], int], decimal.Decimal]
- Description
Functions
to_mm(value : int) -> decimal.Decimal
Convert 0.1mm into mm.
Parameters
- Name
value
- Type
- int
- Default
- Description
The number in 0.1mm to convert.
Response
- Type
- decimal.Decimal
- Description
The value with unit mm.
to_c(value : int) -> decimal.Decimal
Convert 0.1°C into °C.
Parameters
- Name
value
- Type
- int
- Default
- Description
The number in 0.1°C to convert.
Response
- Type
- decimal.Decimal
- Description
The value with unit °C.