ascii()

Examples


The ascii() function returns an integer corresponding to the ASCII value of a given character.

Syntax

ascii(string)

Parameters

string – The character value for which you want the ASCII value. If string contains more than one character, the ASCII value of only the first character will be returned.

Return value

Integer


Documentation Feedback