Rdb: Ruby-Nachbau der MWC /rdb-Werkzeuge
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
.TH ascii "" "" "/rdb Command"
|
||||
.PC "Return the ASCII value of a character"
|
||||
\fBascii \fIcharacter...\fR
|
||||
.PP
|
||||
.II ASCII
|
||||
The command
|
||||
.B ascii
|
||||
converts each of the characters in its first argument
|
||||
to a space-delimited series of numbers.
|
||||
You can use this command to find the internal computer representation
|
||||
of a character.
|
||||
Any strings following the first are ignored.
|
||||
If you have spaces in your string, be sure to put
|
||||
quotation marks around them.
|
||||
.SH Example
|
||||
The command
|
||||
.DM
|
||||
ascii aA1
|
||||
.DE
|
||||
.PP
|
||||
produces:
|
||||
.DM
|
||||
97 65 49
|
||||
.DE
|
||||
.PP
|
||||
The command
|
||||
.DM
|
||||
ascii ' '
|
||||
.DE
|
||||
.PP
|
||||
produces:
|
||||
.DM
|
||||
32
|
||||
.DE
|
||||
.PP
|
||||
Note that the single space character, enclosed within apostrophes,
|
||||
is converted to its ASCII code in decimal (32).
|
||||
.SH "See Also"
|
||||
.B
|
||||
chr
|
||||
.R
|
||||
.br
|
||||
COHERENT Lexicon:
|
||||
.B
|
||||
ASCII
|
||||
.R
|
||||
Reference in New Issue
Block a user