%IToStr function


Function
The function converts specified expression to a value of Text type (string) in decimal or optionally different numeral system.
Declaration
TEXT %IToStr(
   INT in Arg
   [, INT in Base]
 )

Parameters
Arg Function argument.
Base Base of numeral system into which the number is converted (2 - 16). If it is not specified, decimal numeral system is used.

Example
 TEXT _s

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

Napíšte komentár