1.0.2 • Published 4 years ago

javascript-number-converter v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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)

Any issues with this package please raise javascript-number-converter