Skip to main content

integer.tochar()

Converts an integer to a single-character string

Availability

Device + Agent

Returns

String

Description

This method returns the target integer as a single-character string. Though the integer value must lie between -127 and 128 — or 0 and 255 unsigned — Squirrel will accept integers out of this range but will derive the character value from the lowest eight bits of the passed value and ignore the rest.

Example Code