Allegro.cc Forums » Programming Questions » New math

Credits go to MiquelFire and piccolo for helping out!
 New math
 Edgar Reynaldo Major Reynaldo May 2007 Can anyone tell me why 2088/864 = 1nlines is ALWAYS 1 modulus is ALWAYS zeroWho let the gremlins into my computer.SRSLY, WTFSincerely,Befuzzled{"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"}
 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 ---Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.MiquelFire.redIf anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo
 piccolo Member #3,163 January 2003 2088/864 = 16+4=101+0=18+1=98+8=161+6=77+2=99/9=1 wow-------------------------------i am who you are not am i
 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.
 Go to: Allegro Development Installation, Setup & Configuration Allegro.cc Comments Off-Topic Ordeals The Depot Game Design & Concepts Programming Questions Recent Threads