Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@extra-number/from-roman.min

2.0.26 • Public • Published

Converts roman numerals to number.

This is part of package extra-number.

This is browserified, minified version of @extra-number/from-roman.
It is exported as global variable number_fromRoman.
CDN: unpkg, jsDelivr.

number.fromRoman(txt);
// txt: roman numerals
const number = require('extra-number');
 
number.fromRoman('IX');
// 9
 
number.fromRoman('CMXXVIII');
// 928
 
number.fromRoman('- x c i x');
// -99
 
number.fromRoman('IIII');
// 4 (additive notation)
 
number.fromRoman('XXIIII');
// 24 (additive notation)

Install

npm i @extra-number/from-roman.min

DownloadsWeekly Downloads

2

Version

2.0.26

License

MIT

Unpacked Size

5.74 kB

Total Files

9

Last publish

Collaborators

  • avatar