>
>
> Yeah, it pretty much rounds it up or down to whole number.
>
>
>
I thought floor rounded the number down?
Is it different in Construct?
Lol, you are a 100% right... my bad
exctract C2
[quote:1q6iuy46]floor(x) Round down x e.g. floor(5.9) = 5
I was thinking round which is better to use in most cases... agggh! long day
Sidenote:
==========================================================================
Edit, for general info: I said most cases, here is why I went for floor:
Range---------floor() -------- round()
[0, 1)--------------0 ------------- 0 or 1
[1, 2)-------------- 1 -------------- 1 or 2
[2, 3)-------------- 2 -------------- 2 or 3
... -------------- ... -------------- ...
[9, 10) -------------- 9 -------------- 9 or 10
It is was more predictable