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

4.1.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;
==> -2 -1


Top Back: bigint expressions Forward: bigint related functions FastBack: Data types FastForward: bigintmat Up: bigint 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.