Hexadecimal Number 1g 2023 laplante@plcb.ca GOWEB/Language


title: “Hexadecimal Number” author: “laplante@plcb.ca” date: 2023-01-01 version: “1.0.0” section: “1g”

category: “GOWEB/Language”

Description

A hexadecimal number is specified with the prefix 0x.
Hexadecimal literals allow representation of numbers in base-16, using digits 0–9 and letters A–F (case-insensitive).

Example

# test a simple hexadecimal number
res={{
    a := 0xaBc;
    a;
}}

return:

res=2748