Go to the first, previous, next, last section, table of contents.


Numeric types

TOM has two kinds of numeric types: integer and floating point. The integer numeric types are:

byte
unsigned 8 bit integer number
char
unsigned 16 bit integer number
int
signed 32 bit integer number
long
signed 64 bit integer number

The floating point numeric types are:

float
single precision floating point number
double
double precision floating point number

In places where a numeric type is expected, a narrower numeric type of the same kind is accepted and implicitly converted. Thus, a byte is acceptable as a char is acceptable as an int is acceptable as a long; and a float is acceptable as a double.

The default value for the numeric types is zero.


Go to the first, previous, next, last section, table of contents.