---
name: "fixtof"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/fixtof/3alleg4"
---

# fixtof(3alleg4)

Converts a fixed point to floating point. Allegro game programming library.

## NAME

fixtof - Converts a fixed point to floating point. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**double fixtof(fixed x);**

## DESCRIPTION

Converts fixed point to floating point. Example:

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

## SEE ALSO

**ftofix**(3alleg4), **itofix**(3alleg4), **fixtoi**(3alleg4), **exfixed**(3alleg4), **exspline**(3alleg4), **exstars**(3alleg4)
