And again, more questions:
If I'm right at Megans description, she just include the next lower
digit when it comes to these subtraction rules, and your Algo seams
to be weak at the same point. Let me give an example:
49 would be normaly coded as IL (always remember, it
was kind of a
system to reduce writing as much as possible - there are even examples
where the number 248 is written CIIL) while Megan seams to code it as
XXXXIX - basicly wrong - or did I miss something ? I'm not realy
what one can call a DEC-Geek.
My code would produce XLIX, not XXXXIX...
I guess I'm unclear as to whether any numeral can be used to reduce
the value of a higher, subsequent numeral.
Using your explanation, 1999 would be MIM, instead of the more
standard (as I have seen it) MCMXCIX. Also, what's to stop
someone from writing it in a form employing the vinculum:
__
III
So do we only have to supporte the one-less rule, or
the rule
of one subtraction numeral - or the full possibility with the
goal to reduce writing to a max ?
So long as someone can clearly explain the rules to what can
be subtracted from what, I'll implement it... (kind of like
requiring a spec). Without it, I can only go on what I can
find documented in the encyclopedia...
Megan Gentry
Former RT-11 Developer
+--------------------------------+-------------------------------------+
| Megan Gentry, EMT/B, PP-ASEL | Internet (work):
gentry!zk3.dec.com |
| Unix Support Engineering Group | (home):
mbg!world.std.com |
| Compaq Computer Corporation | addresses need '@' in place of '!' |
| 110 Spitbrook Rd. ZK03-2/T43 | URL:
http://world.std.com/~mbg/ |
| Nashua, NH 03062 | "pdp-11 programmer - some assembler |
| (603) 884 1055 | required." - mbg |
+--------------------------------+-------------------------------------+