Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%RToStr function


Function
The function converts a real number to a text (string).
Declaration


Blok kódu
languageesl
themeConfluence
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 the maximal accuracy.
 


Blok kódu
languageesl
themeRDark
 %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.