Ltoa - Crestron SIMPL+ Reference Manual

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

Advertisement

Software
®
114
SIMPL+

LtoA

Name:
LtoA
Syntax:
STRING LtoA(LONG_INTEGER CODE);
Description:
Takes the value in CODE and creates a string containing the string equivalent of that
LONG_INTEGER. The output string does not contain leading zeros.
Parameters:
CODE contains a number from 0 to 2147483647 to be converted into a string. CODE
is treated as an unsigned number.
Return Value:
A string representing the code.
Note that the following two statements are equivalent:
out$ = ltoa(CODE);
makestring(out$, "%ld", CODE);
Example:
STRING_OUTPUT Code$;
LONG_INTEGER VALUE;
CHANGE VALUE
{
Code$ = LTOA(VALUE);
PRINT("Code = %s\n", Code$);
}
For example, if VALUE was equal to 25, Code$ would contain the string "25".
Version:
SIMPL+ Version 3.00.07
Control System
2-Series Only
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents