Porovnávané verzie

Kľúč

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

%IToStr function


Function
The function converts the specified expression to a value of Text type (string) in decimal or optionally different numeral system.
Declaration


Blok kódu
languageesl
themeConfluence
TEXT %IToStr(
   INT in Arg
   [, INT in Base]
 )
Parameters


ArgFunction argument.
Base
Base

The base of

numeral

the numeric system into which the number is converted (2 - 16). If it is not specified, a decimal numeral system is used.

Example


Blok kódu
languageesl
themeRDark
 TEXT _s

 _s  := %IToStr ( 500 )          ; returns string "500"
 _s  := %IToStr ( 255, 16 )      ; returns string "FF"
 _s  := %IToStr ( -8, 2 )        ; returns string "-1000"