Skip to main content
Module

x/structurae/index.ts>getBitSize

Data structures for high-performance JavaScript applications.
Latest
function getBitSize
import { getBitSize } from "https://deno.land/x/structurae@4.0.1/index.ts";

Returns the minimum amount of bits necessary to hold a given number.

Parameters

number: number

the number

Returns

number

the amount of bits necessary