Pure
The number to be converted.
The width of the string. If the width of the resulting conversion is too small the string will be filled with spaces. Use 0 for no padding.
The amount of decimal places. The minimum possible precision is 1 (automatically set).
See: R2S
for a simple converter with preset values.
Generated using TypeDoc
Returns a string representation for real r with precision digits and width. The real is correctly rounded to nearest to fit within the precision.
Lua: Raises an error if r is null.
Works similar to C/C++ printf, but does not support negative width (left-align with right padding).
Example (Lua):