1al_fixtof(3)               Library Functions Manual               al_fixtof(3)
2
3
4

NAME

6       al_fixtof
7

SYNOPSIS

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

DESCRIPTION

14       Converts fixed point to floating point.
15
16       Example:
17
18                  float result;
19
20                  /* This will put 33.33333 into `result'. */
21                  result = al_fixtof(al_itofix(100) / 3);
22
23                  /* This will put 16.66666 into `result'. */
24                  result = al_fixtof(al_itofix(100) / 6);
25

SEE ALSO

27       al_ftofix(3), al_itofix(3), al_fixtoi(3).
28
29
30
31Allegro reference manual                                          al_fixtof(3)
Impressum