radics
v0.1.0
Published
Converts numbers between different bases even between custom radix.
Downloads
3
Maintainers
Readme
radics
Converts numbers between different bases even between custom radix.
Install
$ npm install radics --save
Usage
var radics = require('radics');
radics('FF').from(16).to(10); // '255'
radics('FF').from('0123456789ABCDEF').to('0123456789'); // '255'
radics('FF').from('');
.from(base)
- base
String
your custom radix baseNumber
number system
Define the base of the "number".
.to(base)
Converts to the destination radix system, and always returns String
.
Licence
MIT