0.1.0 • Published 10 years ago
radics v0.1.0
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
0.1.0
10 years ago