Js.BigintBindings to functions in JavaScript's BigInt
JavaScript BigInt API
type t = Js.bigintval make : 'a -> tmake repr creates a new BigInt from the representation repr. repr can be a number, a string, boolean, etc.
asIntN ~precision bigint truncates the BigInt value of bigint to the given number of least significant bits specified by precision and returns that value as a signed integer.
asUintN ~precision bigint truncates the BigInt value of bigint to the given number of least significant bits specified by precision and returns that value as an unsigned integer.
val toLocaleString :
locale:string ->
?options:toLocaleStringOptions ->
t ->
stringtoLocaleString bigint returns a string with a language-sensitive representation of this BigInt.
val toString : t -> stringtoString bigint returns a string representing the specified BigInt value.