1fixceil(3) Allegro manual fixceil(3)
2
3
4
6 fixceil - Returns the smallest integer not less than x. Allegro game
7 programming library.
8
10 #include <allegro.h>
11
12
13 int fixceil(fixed x);
14
16 Returns the smallest integer not less than x. That is, it rounds
17 towards positive infinity. Example:
18
19 int result;
20 /* This will put 34 into `result'. */
21 result = fixceil(itofix(100) / 3);
22 /* This will round up to 17. */
23 result = fixceil(itofix(100) / 6);
24
25
27 fixtoi(3), fixfloor(3)
28
29
30
31Allegro version 4.4.2 fixceil(3)