weequ
2011-02-12 05:08:13
So almost every time I try write something with simba I get bugs…
This time Ceil() rounding down extendeds when it should round it to highest integer.
Edit: I just tried and it works like this: Ceil(0.25) -> 1
But doesn't work like this: Ceil(1/4) -> 0
Also won't work like this: Ceil((1/4))
Maybe I'm doing something wrong?
Edit 2: Why simba automatically rounds 1/4 to 0?
So yea it works when I do like this: Ceil(1.0/4.0);
Is there any functions that will return integer as extended?
This time Ceil() rounding down extendeds when it should round it to highest integer.
Edit: I just tried and it works like this: Ceil(0.25) -> 1
But doesn't work like this: Ceil(1/4) -> 0
Also won't work like this: Ceil((1/4))
Maybe I'm doing something wrong?
Edit 2: Why simba automatically rounds 1/4 to 0?
So yea it works when I do like this: Ceil(1.0/4.0);
Is there any functions that will return integer as extended?