1al_fixtoi(3)                                                      al_fixtoi(3)
2
3
4

NAME

6       al_fixtoi - Allegro 5 API
7

SYNOPSIS

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

DESCRIPTION

14       Converts  fixed  point  to integer, rounding as required to the nearest
15       integer.
16
17       Example:
18
19              int result;
20
21              /* This will put 33 into `result'. */
22              result = al_fixtoi(al_itofix(100) / 3);
23
24              /* But this will round up to 17. */
25              result = al_fixtoi(al_itofix(100) / 6);
26

SEE ALSO

28       al_itofix(3),  al_ftofix(3),  al_fixtof(3),   al_fixfloor(3),   al_fix‐
29       ceil(3).
30
31
32
33Allegro reference manual                                          al_fixtoi(3)
Impressum