UNPKG

numeric-quantity

Version:

Number parser with support for mixed numbers, vulgar fractions, and Roman numerals

9 lines (8 loc) 351 B
/** * Converts a string of Roman numerals to a number, like `parseInt` * for Roman numerals. Uses modern, strict rules (only 1 to 3999). * * The string can include ASCII representations of Roman numerals * or Unicode Roman numeral code points (`U+2160` through `U+217F`). */ export declare const parseRomanNumerals: (romanNumerals: string) => number;