CRect:Ceil
The Ceil method rounds all 4 rectangle limits to the next higher integer value. For example xmax=100.54 becomes xmax=101.
CRect:Ceil() |
This method rounds all 4 rectangle limits to the next higher integer values. Compare with the Round and Floor methods.
The following script creates a CRect object and shows its values before and after using the Ceil method.
|
-- Create a CRect |
|
-- result: 383.43 502.14, 603.43 554.83 |
|
-- round down to integer values |
|
-- result: 384 503, 604 555 |