Menu
Double-double LogoDouble-doubleDocs
GitHub
Double-double LogoDouble-double
  • Docs
  • GitHub
  • Introduction
    • Getting started
  • Functions
    • Basic
      • fastTwoDiff
      • fastTwoSum
      • reduceSignificand
      • split
      • twoDiff
      • twoProduct
      • twoSquare
      • twoSum
    • Unary
      • ddAbs
      • ddDivBy2
      • ddMultBy2
      • ddMultBy4
      • ddMultByNeg2
      • ddMultByNeg4
      • ddNegativeOf
      • ddSign
      • ddSqrt
    • Binary
      • ddAddDd
      • ddCompare
      • ddDiffDd
      • ddDivDd
      • ddMax
      • ddMin
      • ddMultDd
    • Arity > 2
      • ddProduct
      • ddSum
    • Mixed precision
      • ddAddDouble
      • ddDivDouble
      • ddMultDouble
      • doubleDivDouble
      • doubleSqrt
    • With error propagation
      • ddDivDdWithError
      • divWithErr
      • sqrtWithErr
    • TRepresentation
      • bitLength
      • exponent
      • getLowestSetBit / getHighestSetBit
      • isBitAligned
      • lsbExponent
      • msbExponent
      • parseDouble
      • significand

bitLength

bitLength(a: number): number

Defined in double-representation/bit-length.ts:10

Returns the bit-length of the significand of the given number in such a way that trailing zeros are not counted.

Parameters:

NameTypeDescription
anumbera double precision floating point number

Returns: number

Previous
« sqrtWithErr
Next
exponent »

Quick Links

  • Docs
  • GitHub
Copyright © 2020 - Built with Docusaurus.