Miss any of our Open RFC calls?Watch the recordings here! »

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.

Install

npm i intradix

DownloadsWeekly Downloads

5

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar