Numeric Production Mechanism

    integer-bit-length

    0.0.2 • Public • Published

    node-integer-bit-length

    Get the minimum bit length of a integer

    Installation

    npm install --save integer-bit-length

    Usage

    const integerBitLength = require('integer-bit-length')
     
    console.log(integerBitLength(256))
    // => 9

    API

    integerBitLength(integer) => Number

    Get the bit length of integer

    A TypeError will be thrown if integer is not a integer

    Keywords

    none

    Install

    npm i integer-bit-length

    DownloadsWeekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • cstruct