CPoint:Ceil
The Ceil method rounds the x,y properties to the next higher integer value. For example P.x=100.54 becomes P.x=101. Compare with the Round and Floor methods.
CPoint:Ceil() |
The following script lists the values of a point before and after using the Ceil method.
|
-- Create a CPoint |
|
-- result: 50.322, 100.55 |
|
-- round to the next lower integer values |
|
-- result: 51, 101 |