Ord: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
m (moved Ord to ORD)
mNo edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  Ord(A$)
  ORD(<[[string]]>)


The '''Ord''' [[internal function]] returns the ASCII ordinate value (from 0 to 255) of the first character in A$.
The '''Ord''' [[internal function]] returns the ASCII ordinate value (from 0 to 255) of the first character in the string$.


====Comments and Examples====
====Comments and Examples====
ORD("A") is 65 because A is represented by 65 in the [[ASCII]] chart.
ORD("A") is 65 because A is represented by 65 in the [[ASCII]] chart.


====Related Functions:====
====Related Functions:====
Inverse function is [[Chr$]](X).
Inverse function is [[Chr$]](X).


====Technical Considerations====
====Technical Considerations====
:1.) Characters after the first character of the string A$ are ignored.
 
# Characters after the first character of the string A$ are ignored.


<noinclude>
<noinclude>
[[Category:Internal Functions]]
[[Category:Internal Functions]]
</noinclude>
</noinclude>

Latest revision as of 17:38, 22 May 2014

ORD(<string>)

The Ord internal function returns the ASCII ordinate value (from 0 to 255) of the first character in the string$.

Comments and Examples

ORD("A") is 65 because A is represented by 65 in the ASCII chart.

Related Functions:

Inverse function is Chr$(X).

Technical Considerations

  1. Characters after the first character of the string A$ are ignored.