Basic - Octal literal

Constants of octal numeral system are also known as octal literals. might contain digits from 0 up to 7.

octal literal

Description

 &O123

Output

Compatible programing languages:
Visual Basic .NET | FreeBASIC

Examples

Basic

Octal literal the possible of use:
x = &O12         ' x = 10
y = 4 * &O77     ' y = 374
if x>10 then
  y = x / &Ha   ' y = 1
end if

Basic

Other pieces of example codes:
&O123
&O111

You can find it in the following collections: constants
Languages: en hu cz sk