Skip to content
Peter edited this page Mar 16, 2019 · 1 revision

Welcome to the SizedBigInt wiki!

test:

function toBitString(l,n) {
  return n.toString(2).padStart(l,'0');
}
function bigInt_log2(a){
 for(var count=0; a>1n; count++)  a = a/2n
 return count
}
Clone this wiki locally