home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 924 of 2,753   
   whiskey to All   
   Re: Grammar for roman numerals   
   06 Apr 07 00:00:11   
   
   From: alex.habar.nam@gmail.com   
      
   > What about "IXIM"? Intuitively this would be 990 (-(-I+X+I)+M), but it   
   > might be calculated as (-I+X)+(-I+M) = 1008 as well.   
      
   Why (-I+X)+(-I+M) and not -(-I+X)+(-I+M) ? Following the same rule as   
   before ("a smaller number placed before a larger numeral should be   
   subtracted from it, instead of added to it") the result will be -(-I+X)   
   +(-I+M) = -(9)+(999) = 999 - 9 = 990. Since (-I+X) is smaller than (-I   
   +M), it will be substracted, not added.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca