#97894 - koryspansel - Sat Aug 12, 2006 5:28 am
Is there a reason this doesn't work?:
But this works:
b should be set to 100.0f in both cases, but the float compare doesn't seem to work for me. Can anyone shed some light? thanks.
--
Kory
Code: |
float a = 100.0f float b = 50.0f; if(a > b) { b = a; } |
But this works:
Code: |
float a = 100.0f; float b = 50.0f; if((int32)a > (int32)b) { b = a; } |
b should be set to 100.0f in both cases, but the float compare doesn't seem to work for me. Can anyone shed some light? thanks.
--
Kory