Function most_significant_bit

Source
pub fn most_significant_bit(input: &JsValue) -> Result<JsValue, JsValue>
Expand description

Computes the index of the most significant bit of the u128 number. The least significant bit is at index 0, and the most significant bit is at index 127.

§Arguments

  • input - Serde ile serileştirilen u128 değeri.

§Returns

The index of the most significant bit.