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