::hwat::utils::ConvertUnits - Converts units from one format to another.
::hwat::utils::ConvertUnits:: units_in units_out {base_value 1}
Units_in |
A string that describes the units you want to convert from. |
Units_out |
A string that describes the units you want to convert to. |
base_value |
[optional] value of the "from" to convert to the "to". |
The conversion value to multiply the “in” values by to get the “out” value. {} on failure.
::hwat::utils::ConvertUnits “4 mph” “mm\/ms”
Be sure to escape any forward slashes with a preceding backslash.
Not passing a base_value is the same as passing 1 for the base_value.