OCTAL/NUMBER 1g 2023-12-12 laplante@plcb.ca GOWEB/Language


title: “Octal Number” author: “Pierre Laplante laplante@plcb.ca” date: “2023-12-12” version: “1.0.0” section: “1g”

category: “GOWEB”/Language

Description

An octal number can be specified using the prefix 0.
Octal numbers are expressed in base 8, meaning their digits range from 0 to 7.
When evaluated, they are converted into their decimal (base 10) equivalent.

Example

# Test a simple octal number
res={{
    a := 0700;
    a;
}}.

Output:

res=448.

See also

Version