Skip to content
Tristan Hume edited this page Apr 23, 2012 · 3 revisions

#ord

##Syntax ord ( ch : char ) : int

##Description The ord function accepts an enumerated value, char, or a string of length 1, and returns the position of the value in the enumeration, or of the character in the ASCII (or EBCDIC for IBM mainframes) sequence. Values of an enumerated type are numbered left to right starting at zero. For example, ord ( "A" ) is 65. The ord function is the inverse of chr, so for any character c, chr ( ord (c)) = c.

##See also chr.html, intstr.html and strint.html functions.

Clone this wiki locally