1.0.3 • Published 7 years ago
intradix v1.0.3
Integer radix
Integer radix converts a decimal integer to a base of your choice (2 - 64) and outputs that as a string.
Usage
const radix = require("intradix")
const binary = radix.convert(123, 2) //Sets ´binary´ constant to a string containing the binary representation of 123.
Notice
Be careful converting large values, over 10^15, as the output may not be accurate with larger values.
License
MIT.