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

Formats a numeric value to a string.

pyui.format_number(number [,decimals])

Parameters

Type Description
number number Numeric value to be formatted
decimals integer Optional: Number of decimals to be displayed

Return value

Type Description
string The formatted string

Note

To format a length value the use of pyui.format_length is prefered.

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_number, format_length