View source

abstract thx.BigInt(BigIntImpl) from BigIntImpl to BigIntImpl

Available on all platforms

Heavily based on code realized by Peter Olson: https://github.com/peterolson/BigInteger.js

Class Fields

var negativeOne(default,null):BigInt

var one(default,null):BigInt

var two(default,null):BigInt

var zero(default,null):BigInt

inline function compare(a:BigInt, b:BigInt):Int

function equals(self:BigInt, that:BigInt):Bool

inline function fromFloat(value:Float):BigInt

inline function fromInt(value:Int):BigInt

inline function fromInt64(value:Int64):BigInt

inline function fromString(value:String):BigInt

inline function fromStringWithBase(value:String, base:Int):BigInt

function greater(self:BigInt, that:BigInt):Bool

function greaterEquals(self:BigInt, that:BigInt):Bool

function less(self:BigInt, that:BigInt):Bool

function lessEquals(self:BigInt, that:BigInt):Bool

function notEquals(self:BigInt, that:BigInt):Bool

Instance Fields

inline function abs():BigInt

inline function add(that:BigInt):BigInt

inline function and(that:BigInt):BigInt

inline function compareTo(that:BigInt):Int

inline function compareToAbs(that:BigInt):Int

inline function divMod(that:BigInt):{remainder:BigInt, quotient:BigInt}

inline function divide(that:BigInt):BigInt

function equalsTo(that:BigInt):Bool

function euclideanModPow(exp:BigInt, mod:BigInt):BigInt

function gcd(that:BigInt):BigInt

function greaterEqualsTo(that:BigInt):Bool

function greaterThan(that:BigInt):Bool

function isDivisibleBy(that:BigInt):Bool

inline function isEven():Bool

inline function isNegative():Bool

inline function isOdd():Bool

inline function isPositive():Bool

function isPrime():Bool

inline function isUnit():Bool

inline function isZero():Bool

function lcm(that:BigInt):BigInt

function lessEqualsTo(that:BigInt):Bool

function lessThan(that:BigInt):Bool

inline function max(that:BigInt):BigInt

inline function min(that:BigInt):BigInt

function modPow(exp:BigInt, mod:BigInt):BigInt

inline function modulo(that:BigInt):BigInt

inline function multiply(that:BigInt):BigInt

inline function negate():BigInt

inline function next():BigInt

inline function not():BigInt

function notEqualsTo(that:BigInt):Bool

inline function or(that:BigInt):BigInt

inline function postDecrement():BigInt

inline function postIncrement():BigInt

inline function pow(exp:BigInt):BigInt

inline function preDecrement():BigInt

inline function preIncrement():BigInt

inline function prev():BigInt

inline function shiftLeft(that:Int):BigInt

inline function shiftRight(that:Int):BigInt

inline function square():BigInt

inline function subtract(that:BigInt):BigInt

inline function toFloat():Float

inline function toInt():Int

inline function toInt64():Int64

inline function toString():String

inline function toStringWithBase(base:Int):String

inline function xor(that:BigInt):BigInt