base-numeral-system
v1.0.4
Published
Base numeral system converter. Convert from/to Binary, Octal, Decimal, Hexadecimal.
Downloads
38
Maintainers
Readme
base-numeral-system - Base numeral system converter. Convert from/to Binary, Octal, Decimal, Hexadecimal.
Installation
# npm ..
$ npm install base-numeral-system
# yarn ..
$ yarn add base-numeral-system
Usage
This is a practical example of how to use.
import { BaseNumeralSystem } from 'base-numeral-system'
const result = BaseNumeralSystem.from(2).to(10).convert(1001)
console.log(result)
// 9