0.1.0 • Published 10 years ago

radics v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

radics NPM version Build Status Dependency Status

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 base
    • Number number system

Define the base of the "number".

.to(base)

Converts to the destination radix system, and always returns String.

Licence

MIT