Strange INT behavior

Blitz3D Forums/Blitz3D Beginners Area/Strange INT behavior

I did a test, and I found something interesting.

B# = A# - Floor(A#) will return the absolute value of the fractional part of A#.

In other words, if A# is 1.5, you get 0.5. If A# is -0.5, you get 0.5. I tried this with .4 and .6 as well both positive and negative to be sure it works in all cases, and it does.

[edit]
Whoops, scratch that, I just realised I tested the positive case twice and failed to test two of the negative cases, which did not work right.
[/edit]