From ZDoom Wiki
Jump to navigation Jump to search

fixed Ceil (fixed value)


Rounds the specified value to the highest whole number.

Return value

The value after rounding, as a fixed-point number.

Custom function

Note: The following is a non-native implementation of the function, for versions of GZDoom older than 2.4.0.

Map a fixed point value to the highest whole number.

 function int ceil (int x)
     return (x + 65535) & 0xFFFF0000;


Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.