WrightTools.units.converter

WrightTools.units.converter(val, current_unit, destination_unit)[source]

Convert from one unit to another.

Parameters
  • val (number) – Number to convert.

  • current_unit (string) – Current unit.

  • destination_unit (string) – Destination unit.

Returns

Converted value.

Return type

number