API / Core / Bigint

BigInt

t

RESCRIPT
type t = Js.Types.bigint_val

asIntN

RESCRIPT
let asIntN: (~width: int, t) => t

asUintN

RESCRIPT
let asUintN: (~width: int, t) => t

fromString

RESCRIPT
let fromString: string => t

fromInt

RESCRIPT
let fromInt: int => t

fromFloat

RESCRIPT
let fromFloat: float => t

toString

RESCRIPT
let toString: t => string

toStringWithRadix

RESCRIPT
let toStringWithRadix: (t, ~radix: int) => string

toLocaleString

RESCRIPT
let toLocaleString: t => string

toFloat

RESCRIPT
let toFloat: t => float

toInt

RESCRIPT
let toInt: t => int

+

RESCRIPT
let +: (t, t) => t

-

RESCRIPT
let -: (t, t) => t

*

RESCRIPT
let *: (t, t) => t

/

RESCRIPT
let /: (t, t) => t

add

RESCRIPT
let add: (t, t) => t

sub

RESCRIPT
let sub: (t, t) => t

mul

RESCRIPT
let mul: (t, t) => t

div

RESCRIPT
let div: (t, t) => t

mod

RESCRIPT
let mod: (t, t) => t

land

RESCRIPT
let land: (t, t) => t

lor

RESCRIPT
let lor: (t, t) => t

lxor

RESCRIPT
let lxor: (t, t) => t

lsl

RESCRIPT
let lsl: (t, t) => t

asr

RESCRIPT
let asr: (t, t) => t

exp

RESCRIPT
let exp: (t, t) => 'a