BigIntConstructor

@native @JSType trait BigIntConstructor extends StObject
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(value: String): BigInt
def apply(value: BigInt): BigInt
def apply(value: Boolean): BigInt
def apply(value: Double): BigInt
def asIntN(bits: Double, int: BigInt): BigInt

Interprets the low bits of a BigInt as a 2's-complement signed integer. All higher bits are discarded.

Interprets the low bits of a BigInt as a 2's-complement signed integer. All higher bits are discarded.

Value Params
bits

The number of low bits to use

int

The BigInt whose bits to extract

def asUintN(bits: Double, int: BigInt): BigInt

Interprets the low bits of a BigInt as an unsigned integer. All higher bits are discarded.

Interprets the low bits of a BigInt as an unsigned integer. All higher bits are discarded.

Value Params
bits

The number of low bits to use

int

The BigInt whose bits to extract

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object