Blog
JavaScript – Parsing A Number
If you should ever need to parse a number into an array of bits or a different base you can use the following function: var splitNumber = (function(MAX) { for (; MAX + 1 – MAX == 1; MAX *= 2){} return function (num, radix) { // Validate num num Read more…