New math
Edgar Reynaldo

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,
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"}612684

MiquelFire

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

2088/864 = 1

6+4=10
1+0=1
8+1=9
8+8=16
1+6=7
7+2=9
9/9=1

Edgar Reynaldo

Sick. Piccolo is right. :o

Actually, MiguelFire guessed it. The ternary operation was taking place after the addition, which totally caught me off guard.

Thread #618286. Printed from Allegro.cc