| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Ceiling/Floored Modulus in cc65? |
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: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3) SEEN-BY: 57/0 116/102 130/512 153/250 317/2 3 393/68 633/267 280 640/384 SEEN-BY: 712/620 848 770/0 1 3 100 340 772/0 1 210 500 @PATH: 770/3 1 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.