Pure
Returns a string representation for real r with precision of 3 digits. The real is correctly rounded to nearest to fit within the precision.
Lua: Raises an error if r is null.
Example:
R2S(1.12) --> 1.120lua Equivalent to: R2SW(r, 0, 3) and Lua: string.format("%.3f", r)lua
R2S(1.12) --> 1.120
R2SW(r, 0, 3)
string.format("%.3f", r)
See: R2SW.
R2SW
Generated using TypeDoc
Returns a string representation for real r with precision of 3 digits. The real is correctly rounded to nearest to fit within the precision.
Lua: Raises an error if r is null.
Example:
R2S(1.12) --> 1.120
lua Equivalent to:R2SW(r, 0, 3)
and Lua:string.format("%.3f", r)
lua