Itoa - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Software
®
112
SIMPL+

ItoA

Name:
ItoA
Syntax:
STRING ItoA(INTEGER CODE);
Description:
Takes the value in CODE and creates a string containing the string equivalent of that
integer. The output string does not contain leading zeros.
Parameters:
CODE contains a number from 0 to 65535 to be converted into a string. CODE is
treated as an unsigned number.
Return Value:
A string representing the code. If CODE is greater than 65535, lower 16-bits of
CODE are used in the computation.
Note that the following two statements are equivalent:
out$ = itoa(CODE);
makestring(out$, "%d", CODE);
Example:
STRING_OUTPUT Code$;
ANALOG_INPUT VALUE;
CHANGE VALUE
{
Code$ = ITOA(VALUE);
PRINT("Code = %s\n", Code$);
}
For example, if VALUE was equal to 25, Code$ would contain the string "25".
Version:
SIMPL+ Version 1.00
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIMPL+ and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF