Hi,

RomanToInt acceps rather ludicrous values:

RomanToInt('MDCLXVIVXLDM') = 2209
RomanToInt('IIIIM') = 1002  //calculated as 3 + (1000-1)

Both examples represent invalid roman numbers by any standard.
Also I do not think Roman numerals can be negative...

Feature or bug?

Bart
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to