[fpc-pascal] Re: StrUtils.RomanToInt oddities
Bart
bartjunk64 at gmail.com
Mon Sep 23 22:16:03 CEST 2013
On 9/23/13, Alberto Narduzzi <albertonarduzzi at yahoo.com> wrote:
> Thing is:
>
> 1. in the roman numerals, not all the digits can be subtracted from the
> others
> 2. no more than three same roman numerals can appear in a row.
My implementation is a little more relaxed as to rule 2.
It is more often "violated" than rule 1.
Typically IIII is not al that uncommon.
> I did an implementation some time ago, for pure fun, and provided I find
> it out (or maybe I can just rewrite it, on the basis of this knowledge)
> I will be - repository allowing ;-) - wery happy to contribute with my
> 2c for it.
By all means.
The princial question must be answered first though.
Bart
More information about the fpc-pascal
mailing list