%RToStr function


Function
The function converts a real number to a text (string).
Declaration
REAL %RToStr(
   REAL in real, 
   [,  TEXT in  mask]
 )
Parameters
realNumber.
maskConversion 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 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". The number of zeros after the decimal point is defined by the mask.

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .