intradix
v1.0.3
Published
A script that converts a decimal value to a base of choice, 2 - 64.
Downloads
4
Maintainers
Readme
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.