IToStr
%IToStr function
Function
The function converts the 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 | The base of the numeric system into which the number is converted (2 - 16). If it is not specified, a 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" Related pages: