|
New math |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Can anyone tell me why 2088/864 = 1 nlines is ALWAYS 1 modulus is ALWAYS zero Who let the gremlins into my computer. SRSLY, WTF Sincerely, {"name":"612684","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/9\/b9c1f9018ff412c3dfeaddb35b18a9ba.png","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/9\/b9c1f9018ff412c3dfeaddb35b18a9ba"} My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
MiquelFire
Member #3,110
January 2003
|
Order of operations. Using your example numbers nshades/InnerArea().W() + (nshades % InnerArea().W())?1:0 2088/864 + (2088 % 864)?1:0 2088/864 + 360?1:0 2.416... + 360?1:0 362.416....?1:0 1 Trenary is really low on the list --- |
piccolo
Member #3,163
January 2003
|
2088/864 = 1 6+4=10 wow |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Sick. Piccolo is right. Actually, MiguelFire guessed it. The ternary operation was taking place after the addition, which totally caught me off guard. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|