-
Notifications
You must be signed in to change notification settings - Fork 8
Primitives
Abe Pralle edited this page Sep 7, 2022
·
8 revisions
Primitives are built-in pass-by-value variable types.
A Logical value can be true or false. AKA "boolean" and "bool".
An unsigned 8-bit integer 0..255.
An unsigned 32-bit integer 0..(2^32-1). Characters can be assigned integer character codes or literal characters in single quotes. The escape sequences used with Strings will work with Characters too, e.g. \n, \[1F642].
A signed 32-bit integer (-2^31)..(2^31-1).
A signed 64-bit integer (-2^63)..(2^63-1).
A 32-bit floating point value, AKA "float".
A 64-bit floating point value, AKA "double".