1al_fixfloor(3)                                                  al_fixfloor(3)
2
3
4

NAME

6       al_fixfloor - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              int al_fixfloor(al_fixed x);
12

DESCRIPTION

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

SEE ALSO

28       al_fixtoi(3), al_fixceil(3).
29
30
31
32Allegro reference manual                                        al_fixfloor(3)
Impressum