Top
Back: ideal related functions
Forward: int declarations
FastBack: ideal
FastForward: intmat
Up: Data types
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.5 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.5.1 int declarations  
4.5.2 int expressions  
4.5.3 int operations  
4.5.5 boolean expressions  
4.5.6 boolean operations  
4.5.4 int related functions  


Top Back: ideal related functions Forward: int declarations FastBack: ideal FastForward: intmat Up: Data types Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.