This is integer overflow. If you want to work with huge integers without overflow, use BigInt
. (Or use floating-point calculations.)
See e.g. the manual on overflow or this discussion or other similar discussions.
This is integer overflow. If you want to work with huge integers without overflow, use BigInt
. (Or use floating-point calculations.)
See e.g. the manual on overflow or this discussion or other similar discussions.