char

Gamma: Version 4.0
Prev |  | Next

# `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`

Prev | Home | Next
`bin` | Up | `char_val`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.