R2S
- Parameters
-
r real
- comment
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
Equivalent to:R2SW(r, 0, 3)
and Lua:string.format("%.3f", r)
- note
See:
R2SW
.- pure
- This function is pure. For the same values passed to it, it will always return the same value.
- patch
1.00
- Source
- common.j
- return type
string
- Source code
native R2S takes real r returns string