@gala-chain/api ∙ API
API > mostSignificantBit
Function: mostSignificantBit()
mostSignificantBit(
n
):number
Parameters
▪ n: bigint
Returns
index of the most signficant bit in a 256-bit number OR the last bit (255)
Notice
gives the MSB for a number