2.0.27 • Published 4 years ago
@extra-number/from-roman.min v2.0.27
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)