Skip to content

ord

const ord: (char: string) => number = builtins.ord

Defined in: packages/pythonlib/src/index.ts:172

Return the Unicode code point for a one-character string.

Parameters

ParameterTypeDescription
charstringA single character

Returns

number

The Unicode code point

See

Python ord()