|
4.2.2 bigint expressions
A bigint expression is:
-
an identifier of type bigint
-
a function returning bigint
-
an expression involving bigints and the arithmetic operations
+ , - , * , div ,
% (mod ), or ^
-
a type cast to bigint.
Example:
| // Note: 11*13*17*100*200*2000*503*1111*222222
// returns a machine integer:
11*13*17*100*200*2000*503*1111*222222;
==> // ** int overflow(*), result may be wrong
==> -6869239595516308480
// using the type cast number for a greater allowed range
bigint(11)*13*17*100*200*2000*503*1111*222222;
==> 12075748128684240000000
|
See
Type conversion and casting;
int;
number.
|