plinth/javascript/big_int

Types

pub type BigInt

Functions

pub fn add(a: BigInt, b: BigInt) -> BigInt

+ operation

pub fn divide(a: BigInt, b: BigInt) -> BigInt

/ operation

pub fn from_int(a: Int) -> BigInt
pub fn from_string(a: String) -> BigInt
pub fn modulo(a: BigInt, b: BigInt) -> BigInt

% operation

pub fn multiply(a: BigInt, b: BigInt) -> BigInt

* operation

pub fn power(a: BigInt, b: BigInt) -> BigInt

** operation

pub fn subtract(a: BigInt, b: BigInt) -> BigInt

- operation

Search Document