DOKK / manpages / debian 12 / allegro5-doc / al_fixtof.3alleg5.en
al_fixtof(3alleg5) al_fixtof(3alleg5)

al_fixtof - Allegro 5 API

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

Converts fixed point to floating point.

Example:

float result;
/* This will put 33.33333 into `result'. */
result = al_fixtof(al_itofix(100) / 3);
/* This will put 16.66666 into `result'. */
result = al_fixtof(al_itofix(100) / 6);
    

al_ftofix(3alleg5), al_itofix(3alleg5), al_fixtoi(3alleg5).

Allegro reference manual