javascript-number-converter
v1.0.2
Published
All Number Conversion at one place
Downloads
4
Maintainers
Readme
All-in-one-number-converter
install package
All number system conversion at one place
Now no need to worry about number conversion or do any hack. Using this package simple all base conversion is possible including Roman. Pure Javascript so can be used in any project using Javascript
Available conversions:
Binary:
import {toBinary} from 'all-in-one-number-converter'; const binaryConverted = toBinary(number,curbase)
Decimal:
import {toDecimal} from 'all-in-one-number-converter'; const decimalConverted = toDecimal(number,curbase)
Hexadecimal:
import {toHexadecimal} from 'all-in-one-number-converter'; const hexaDecimalConverted = toHexadecimal(number,curbase)
Octal:
import {toOctal} from 'all-in-one-number-converter'; const octalConverted = toOctal(number,curbase)
Roman:
import {toRoman} from 'all-in-one-number-converter' const romanConversion = toRoman(number,curbase)
Any Base:
import {toNewBase} from 'all-in-one-number-converter'; const baseConverted = toNewBase(number,curbase,newbase)