---
name: "fixtof"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/fixtof"
---

# fixtof(3alleg)

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**(3alleg)](/ftofix/3alleg.md), [**itofix**(3alleg)](/itofix/3alleg.md), [**fixtoi**(3alleg)](/fixtoi/3alleg.md), [**exfixed**(3alleg)](/exfixed/3alleg.md), [**exspline**(3alleg)](/exspline/3alleg.md), [**exstars**(3alleg)](/exstars/3alleg.md)
