home bbs files messages ]

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

   comp.sys.cbm      Discussion about Commodore micros      53,866 messages   

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

   Message 52,162 of 53,866   
   Harry Potter to All   
   Ceiling/Floored Modulus in cc65?   
   26 Dec 17 02:39:43   
   
   From: rose.joseph12@yahoo.com   
      
   I am a little confused about the difference between ceilinged and floored   
   divide/modulus: which handles negative divisors returning negative of absolute   
   remainders and which returns reverse-order positive remainders. I am looking   
   for the latter in a cc65    
   C program. If I'm not making myself clear, let's say I'm dividing -2 by 3. I   
   want the remainder to 1, not -2. How do I do that? C seems to by default give   
   -2 as the remainder. I also want a vocabulary check as mentioned.    
      
   BTW, this is for compression software.   
      
   --- 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