| Applying science to business management |
  
Octal and Hexadecimal Numbers
Integers can be entered as octal (base 8) and hexadecimal
(base 16) values.
To enter an octal number, enter a zero followed by a sequence
of digits. Each digit must be in the range 0-7. For example,
010
0775
To enter a hexadecimal number, enter a zero followed by the
character x and a sequence of digits. Each digit must be a number
(0-9) or a letter (A-F or a-f). For example,
0xff
0xFF
0x3AC8EF
Note that hexadecimal numbers are supported in both
DecisionPro and DecisionScript. However, octal numbers are
supported only in DecisionScript. Although it is very unlikely
that you would ever enter a hexadecimal number inadvertently, it
is possible that you would enter an octal number intending the
number to be base 10. Octal number support has been disabled in
DecisionPros
implementation of the DScript language to prevent this type of
user error.
|