The function converts a real number to a text
(string).
Declaration
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 real to a text according to the mask. If any mask is not
entered, the given number is converted with the maximal accuracy.
%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 of zeros after decimal point is defined by mask.
0 komentárov