Skip to content

bigIntLog2

bigIntLog2(value): number

Defined in: packages/core/src/big-int/log2.ts:9

Floor of log₂ for a positive value, with none of the rounding Math.log2 introduces once the value leaves the exactly-representable range.

bigint

number

When value is zero or negative.