Basic <-> Free Pascal | Octal literal

Basic

octal literal

Description

 &O123

Output

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
.
Free Pascal

octal literal

Description

 &123

Output

Examples

Free Pascal

Octal literal the possible of use:
x := &12;         // x = 10
y := 4 * &77;     // y = 374
if x>10 then
  y := x / $a;   // y = 1

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