_BIN$
_BIN$ converts a decimal number resulting from the specified numerical expression into the binary equivalent.
Syntax
_BIN$ (numExpr)return value: string that is the binary representation of the number.
&O
&O is a "numerical base prefix" for octal numbers. This new prefix expands the already existing two other prefixes: &H for hexadecimal numbers and &B for binary numbers. (All of these prefixes can be in either lowercase or uppercase.)
Examples for all of these numerical base prefixes:
- Binary numbers: prefix with
&bor&Bprint &1010prints the decimal number 10print &b11111010prints the decimal number 250
- Hex numbers: prefix with
&hor&Hprint &haprints the decimal number 10print &hfaprints the decimal number 250
- Octal numbers: prefix with
&oor&Oprint &o12prints the decimal number 10print &o372prints the decimal number 250
No comments:
Post a Comment