@extra-number/from-roman
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.27 • Public • Published

    Converts roman numerals to number.

    This is part of package extra-number.

    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

    DownloadsWeekly Downloads

    2

    Version

    2.0.27

    License

    MIT

    Unpacked Size

    4.88 kB

    Total Files

    9

    Last publish

    Collaborators

    • wolfram77