I had a problem with floats, as it seems that PB automatically casts numbers to double. I managed like this:
This is not working correct:
Code: Select all
Variable.f = 1.4
If 1.4 > Variable.f
Debug "Test"
EndIfCode: Select all
Variable.f = 1.4
Comp1.f = 1.4
If Comp1.f > Variable.f
Debug "Test"
EndIfCode: Select all
If (float)1.4 > Comp1.f
Debug "Test"
EndIfCode: Select all
If 1.4.f > Comp1.f
Debug "Test"
EndIfPS. I know the problems about working and comparing floating point numbers. The only question is about a direct casting of values in source without storing them in variables before using.
Kukulkan

