The function converts a real number to a text (string).
Declaration
Blok kódu
language
esl
theme
Confluence
REAL %RToStr(
REAL in real,
[, TEXT in mask]
)
Parameters
real
Number.
mask
Conversion mask.
Example
The function converts the real number given by the expression realto a text according to the mask. If any mask is not entered, the given number is converted with the maximal accuracy.
Blok kódu
language
esl
theme
RDark
%RToStr(1.256, "###.##") ; returns the value of 1.26
Note
The conversion %RToStr converts the negative zero (IEEE 754), which is a real number, to the string "0.0000".Number The number of zeros after the decimal point is defined by the mask.