Top
Back: bigint expressions
Forward: bigint related functions
FastBack: cring
FastForward: bigintmat
Up: bigint
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.2.3 bigint operations

+
addition
-
negation or subtraction
*
multiplication
div
integer division (omitting the remainder >= 0)
mod, %
integer modulo (the remainder of the division div)
^, **
exponentiation (exponent must be non-negative)
<, >, <=, >=, ==, <>
comparators


Example:
 
bigint(5)*2, bigint(2)^100-10;
==> 10 1267650600228229401496703205366
bigint(-5) div 2, bigint(-5) mod 2;
==> -3 1


Top Back: bigint expressions Forward: bigint related functions FastBack: cring FastForward: bigintmat Up: bigint Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.