This started as a joke, but after implementing it, I'd actually like
to propose this as an addition and see what comes of it.

I've added support for stringifying and parsing numbers to and from
Roman numeral representation, using the usual Number functions:
    var num = 5;
    console.log(num.toString("r")); // logs "V"
    console.log(parseInt("IX"));    // logs 9
https://github.com/penduin/romanumber

I have two main questions:
- Is this worth proposing?  It seems silly, but does deal with real
numerical representations.
- Is using "r" as a radix sane?  Would separate .toRomanString /
.parseRoman be better?
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to