char

char — generates an ASCII character from a number.

Syntax

char (number)

		

Arguments

number

Any number. This is cast to an integer between 0 and 255. Negative numbers are treated as unsigned 2's complement integers.

Returns

A character string with one character which is the character representation of the ASCII value given as the argument.

Description

This function generates the string representation of an ASCII character value.

Example

Gamma> char (65);
"A"
Gamma> char (188);
"¼"
Gamma> char (350.25);
"^"
Gamma> char (-12);
"ô"
Gamma> 
		

See Also

char_val