intradix

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i intradix

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • axelboberg