Parameters: This function accept two parameters as mentioned above and described below:
- width: This parameter holds the amount of bits available for the integer size.
- bigint: This parameter holds the integer to clamp to fit into the supplied bits.
Return value: This method returns the value of bigint modulo 2width as a signed integer.
65536n 4294967296n "Number exceed the limit of signed 64-bit integer!"
9223372036854775807n -9223372036854775808n -1n
Supported Browsers: The browsers supported by BigInt.asIntN() method are listed below:
- Google Chrome