Ceiling – AMT Datasouth PAL User Manual
Page 67
Advertising

61
ceiling
ceiling
Description
Returns the next higher integer value.
Usage
AnyNum
ceiling
CeilingNum
AnyNum
Integer or fixed-point. Value to raise to the next higher integer.
CeilingNum
Integer or fixed-point. Next higher integer above AnyNum. The type of the re-
turned value matches the type of the supplied parameter.
Comments
Although this operator will accept integer values, this operator has no affect upon integers. The
following table shows the affect of the ceiling operator upon various fixed-point values.
1.6
ceiling 2.0
1.5
ceiling 2.0
1.4
ceiling 2.0
1.0
ceiling 1.0
0.0
ceiling 0.0
-1.0
ceiling -1.0
-1.4
ceiling -1.0
-1.5
ceiling -1.0
-1.6
ceiling -1.0
Advertising