To me this seems like a bug as it doesn't give the result I'd expect when passing integers into ceil. Here's some examples
I'd expect 2 with this example but I get 1 in AGK:
ceil(7 / 4)
I only get 2 if I do this:
ceil(7.0 / 4.0)
I noticed this problem because I'm dividing two integer variables: noOfCards and noOfCols. noOfCards would be a different number each time and noOfCols would always be 4.
ceil(noOfCards / noOfCols)
It works if I do this:
ceil(noOfCards * 1.0 / noOfCols * 1.0)
To me it's a bug because if I type ceil(7 / 4) in the Mac Spotlight search box I get 2, not 1.