## 4.7 int

Variables of type int represent the machine integers and are, therefore, limited in their range (e.g., the range is between -2147483647 and 2147483647 on 32-bit machines). They are mainly used to count things (dimension, rank, etc.), in loops (see for), and to represent boolean values (FALSE is represented by 0, every other value means TRUE, see boolean expressions).

Integers consist of a sequence of digits, possibly preceded by a sign. A space is considered as a separator, so it is not allowed between digits. A sequence of digits outside the allowed range is converted to the type `bigint`, see bigint.

> 4.7.1 int declarations |  |
> 4.7.2 int expressions |  |
> 4.7.3 int operations |  |
> 4.7.5 boolean expressions |  |
> 4.7.6 boolean operations |  |
> 4.7.4 int related functions |  |

User manual for Singular version 4.4.1, 2025, generated by texi2html.