---
name: "al_fixtof"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_fixtof/3alleg5"
---

# al\_fixtof(3alleg5)

Allegro 5 API

## NAME

al\_fixtof - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

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);
  ```

## SEE ALSO

al\_ftofix(3alleg5), al\_itofix(3alleg5), al\_fixtoi(3alleg5).
