decimal-roman-converter
v1.1.0
Published
Decimal / Roman numbers converter
Downloads
3
Maintainers
Readme
Realised during a technical code interview for AXOPEN
Table of content:
Installation
$ npm install decimal-roman-converter
Usage
const { toDecimal, toRoman } = require('decimal-roman-converter')
Methods
toRoman()
| Parameter | Type | Default | Description | | --- | --- | --- | --- | | number | int | | Number to convert |
Returns: roman string
toDecimal()
| Parameter | Type | Default | Description | | --- | --- | --- | --- | | romanString | string | | Roman number string to convert |
Returns: number
License
MIT License
Copyright (c) barthofu