1al_fixtof(3) al_fixtof(3)
23
4
NAME
6al_fixtof - Allegro 5 API
7
SYNOPSIS
9#include <allegro5/allegro.h>
1011
double al_fixtof(al_fixed x);
12
DESCRIPTION
14Converts fixed point to floating point.
1516
Example:
1718
float result;
1920
/* This will put 33.33333 into `result'. */
21result = al_fixtof(al_itofix(100) / 3);
2223
/* This will put 16.66666 into `result'. */
24result = al_fixtof(al_itofix(100) / 6);
25
SEE ALSO
27al_ftofix(3), al_itofix(3), al_fixtoi(3).
2829
30
31
Allegro reference manual al_fixtof(3)