Skip to content Skip to sidebar Skip to footer

Javascript Big Integer From String To Base 2

How to from a JavaScript String, assuming that it will be converted to base 2 number representation, get length of it? var a = '2725361283465129281706806310805195282291469644342714

Solution 1:

I've found library that does all I need in npm "big-integer"

  1. Parse string to biginteger https://github.com/peterolson/BigInteger.js#bigintnumber-base
  2. Parse biginteger to string converting it to other base https://github.com/peterolson/BigInteger.js#override-methods

Post a Comment for "Javascript Big Integer From String To Base 2"