Skip to content

gorangorun/base-numeral-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Online converters