NumToChar

Converts a number to a one-character string containing a character with the ASCII code equal to the number.

Syntax

NumToChar(number)

Parameters

Parameter

Type

Description

number

number

ASCII code of the character

Return

Returns a one-character string containing the character with the ASCII code equal to the specified number.

Examples

Python

import nex
oneAsString = nex.NumToChar(49)
# oneAsString now is equal to "1"

NexScript

oneAsString = NumToChar(49)
% oneAsString now is equal to "1"