Skip to content
👻 Converts decimal to Roman numerals: 1219 → MCCXIX
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
test.js

README.md

dec-to-rom Build Status

Converts decimal to Roman numerals between 1 - 100000: 1219 → MCCXIX

Install

$ npm install dec-to-rom

Usage

const decToRom = require('dec-to-rom');

decToRom(123);
// returns 'CXXIII'
decToRom(567);
// returns 'DLXVII'
decToRom(3099);
// returns 'MMMXCIX'
decToRom(1219);
// returns 'MCCXIX'
decToRom(40215);
// returns 'MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMCCXV'

License

MIT © Damian Polak

You can’t perform that action at this time.