Darwin Help

Back to Index

IntToAscii

Function IntToAscii - convert an integer to its ascii ordinal character

Calling Sequence  IntToAscii(i)
Parameters
NameTypeDescription

i posintan integer between 1 and 255
Return Type  string
Synopsis Converts an integer between 1 and 255 to its ascii ordinal character. The null character (octal 000) cannot be represented. This function allows an easy way to generate non-printable characters, or special (accentuated) characters. This is useful when encoding/decoding symbols for dynamic programming. It is also useful in general for the analysis of raw input.
Examples
> IntToAscii(97);
a
> IntToAscii(126);
~
See also AsciiToInt,   AToInt,   CaseSearchString,   IntToA,   SearchString