Primitive Types
int
: A 64-bit signed integer, represented as a sequence of one or more digits: e.g. 3
, 4
, 17800
.
float
: A 64-bit floating-point number, represented as a int
followed by a decimal point and zero or more digits: e.g., 3.14
, 3.
.
bool
: true
or false
.
str
: A constant, immutable sequence of characters, enclosed with double quotes: "Hello, world!"
.
void
: A non-constructible type that represents the absence of a value.