TOM has two kinds of numeric types: integer and floating point. The integer numeric types are:
byte
char
int
long
The floating point numeric types are:
float
double
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.