Main.Accert.convert_unit#
- Accert.convert_unit(current_value, current_unit, to_unit)[source]#
Converts the current unit to a new unit.
- Parameters:
current_value (float) – Current value to be converted.
current_unit (str) – Current unit.
to_unit (str) – Unit to be converted to.
- Returns:
to_value – Converted value.
- Return type:
float