$toord

$toord

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

$toord

Converts a character into its ordinal number value.

Syntax

$toord(char)

Parameters

chara character string, or any expression that evaluates to a character string

Return Value

Number.

Comments

Each of the decimal numbers from 0 to 255 represents a character output by your workstation. $Toord converts the given character to the corresponding decimal number.

If char contains more than one character, only the first character is converted.

The number produced by the $toord function can be converted back to a character by the $tochr function.

Example

$toord(" ")

Evaluates to 32 (on ASCII machines).

$toord(tochr(anynumber ))

Evaluates to any number.

See Also

$toalpha

$tocharacter

$tochr

$todate

About Functional Expressions

Number Literals

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

pt_BRPortuguese