User guide

eWON 500-2001-4001-4002 User Guide - Programming the eWON
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 132
9.2.7 ASCII
Syntax [function]
ASCII CA
Purpose:
The function returns the ASCII code of the first character of the chain CA. If the chain is empty, the function returns 0.
Example:
Returns the ASCII code of the character H
See also:
“CHR$” on page 133
9.2.8 BIN$
Syntax [function]
BIN$ E1
Purpose:
The function returns a string of 32 characters that represents the binary value of E1. It does not work on negative values.
Example:
REM A$ is worth " 00000000000000000000000000000101 " after this affectation
See also:
“HEX$” on page 145
9.2.9 BNOT
Syntax [function]
BNOT E1
Purpose:
This function returns the "bitwise negation" or one's complement of the integer E1.
Example:
Will display 11111111111111111111111111111010
See also:
“Operators priority” on page 127
a% = ASCII "HOP"
A$= BIN$ 5
a%=5
b%=BNOT a%
print BIN$(b%)