Please take a look to the following piece of code:
// Project: Floats
// Created: 2016-10-02
// set window properties
SetWindowTitle( "Floats" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
array as integer[]
col_count as integer
array.length = 7
col_count = 3
do
row_count# = Ceil((array.length + 1) / col_count)
Print(row_count#)
Sync()
loop
The output is 2.0 but it should be 3.0
Since the Ceil function accepts a floating point number, as an argument, then both of the operands of the calculation should be treated as floating point numbers (or at least the result of the calculation)