1fixtof(3) Allegro manual fixtof(3)
2
3
4
6 fixtof - Converts a fixed point to floating point. Allegro game pro‐
7 gramming library.
8
10 #include <allegro.h>
11
12
13 double fixtof(fixed x);
14
16 Converts fixed point to floating point. Example:
17
18 float result;
19
20 /* This will put 33.33333 into `result'. */
21 result = fixtof(itofix(100) / 3);
22 /* This will put 16.66666 into `result'. */
23 result = fixtof(itofix(100) / 6);
24
25
27 ftofix(3), itofix(3), fixtoi(3), exfixed(3), exspline(3), exstars(3)
28
29
30
31Allegro version 4.4.2 fixtof(3)