1fixfloor(3)                     Allegro manual                     fixfloor(3)
2
3
4

NAME

6       fixfloor  -  Returns  the  greatest integer not greater than x. Allegro
7       game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int fixfloor(fixed x);
14

DESCRIPTION

16       Returns the greatest integer not greater than x.  That  is,  it  rounds
17       towards negative infinity. Example:
18
19          int result;
20          /* This will put 33 into `result'. */
21          result = fixfloor(itofix(100) / 3);
22          /* And this will round down to 16. */
23          result = fixfloor(itofix(100) / 6);
24
25

SEE ALSO

27       fixtoi(3), fixceil(3)
28
29
30
31Allegro                          version 4.4.3                     fixfloor(3)
Impressum