BigInteger

A BigInteger represents an integer with arbitrary precision.

let huge_number be new BigInteger with just "10000000000000000000000000000000"

The constructor can take an integer, a float, or a string.

Arithmetic

Like integers, BigIntegers can be used in arithmetic operations involving integers and floats, however the resulting type will always be another BigInteger.

let a be huge_number + 1 # BigInteger 10000000000000000000000000000001

Constructor

Creates a new BigInteger by parsing the given value.

let a be new BigInteger with just "42"

Methods

Returns a string representation of the number.

Returns a string representation of the number as a string in JSON format.

Returns this BigInteger clamped between min and max, inclusive.

print "hello world"