pyui.format_length - pytha-3d-cad/pytha-lua-api GitHub Wiki

Formats a numeric value to a string. This function is preferentially useful to display length values.

pyui.format_length(number)

Parameters

Type Description
number number Numeric value to be formatted

Return value

Type Description
string The formatted string

Note

pyui.format_length will format imperial units properly. It will additionally use the preset number of digits in PYTHA. Therefore, its use for any length is preferred over pyui.format_number

A ` behind the formatted number indicates that digits are not being displayed. As long as this number is not modified, PYTHA will use the exact recall of the original number. For further information please check the general PYTHA documentation.

See also

pyui, parse_length, format_number