Specifies whether numbers with a leading zero are assumed to be octal numbers.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
set the convertOctals to {true | false}
# Examples
set the convertOctals to true
# Description
Use the convertOctals property to make it easier to work with octal numbers.
If the convertOctals property is set to true, numbers that start with a zero are treated as octal (base 8) numbers, instead of decimal (base 10). If the convertOctals is false, all numbers (except hexadecimal numbers, which start with 0x) are treated as decimal.
Since the convertOctals is a local property, its value is reset to false when the current handler finishes execute. It retains its value only for the current handler, and setting it in one handler does not affect its value in other handlers it calls.
# Tags
math,
# See
- **command:** reset - **function:** baseConvert - **glossary:** property, call, handler, execute, octal, local property, hexadecimal