Eliot's Forum
Parenthesis Aren't Retained in Math [Unreal 227h] - Printable Version

+- Eliot's Forum (https://eliotvu.com/forum)
+-- Forum: UE Explorer (https://eliotvu.com/forum/forumdisplay.php?fid=1)
+--- Forum: General (https://eliotvu.com/forum/forumdisplay.php?fid=3)
+---- Forum: Issues (https://eliotvu.com/forum/forumdisplay.php?fid=4)
+---- Thread: Parenthesis Aren't Retained in Math [Unreal 227h] (/showthread.php?tid=15)



Parenthesis Aren't Retained in Math [Unreal 227h] - titegtnodI - 04-09-2012

Code:
EndTrace = StartTrace + Accuracy * (FRand() - 0.5 )* Y * 1000
               + Accuracy * (FRand() - 0.5 ) * Z * 1000;

Decompiles to:

Code:
EndTrace = StartTrace + Accuracy * FRand() - 0.50 * Y * float(1000) + Accuracy * FRand() - 0.50 * Z * float(1000);

I think you can see where the parenthesis are stripped :p.


RE: Parenthesis Aren't Retained in Math [Unreal 227h] - eliot - 04-10-2012

I'm struggling to figure out where those parenthesis even resist within the package. The only priority I can get are the standard ones defined in the operators. :/