[fpc-pascal] Re: StrUtils.RomanToInt oddities

Bart bartjunk64 at gmail.com
Tue Sep 24 08:59:12 CEST 2013


On 9/23/13, Alberto Narduzzi <albertonarduzzi at yahoo.com> wrote:

>>> Are you sure regarding M considering there is no symbol for 5000? Or
>>> didn't Romans count to more than 5000 - 1?
>
> yes I am. as 5000 - 1 would need to be written MMMMCMXCIX, which has the
> 4-M-in-a-row, that is invalid, as a maximum of three is allowed.
>

It's more or less common practice to allow > 3 M's if you need values > 3999.

Bart



More information about the fpc-pascal mailing list