---
name: "radtofix_r"
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/radtofix_r/3alleg4"
---

# radtofix\_r(3alleg4)

Constant to convert radians to fixed point angles. Allegro game programming library.

## NAME

radtofix\_r - Constant to convert radians to fixed point angles. Allegro game programming library.

## SYNOPSIS

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

**extern const fixed radtofix\_r;**

## DESCRIPTION

This constant gives a ratio which can be used to convert a fixed point number in radians to a fixed point number in binary angle format. Example:

```
   fixed rad_angle, binary_angle;
   ...
   binary_angle = fixmul(rad_angle, radtofix_r);
```

## SEE ALSO

**fixmul**(3alleg4), **fixtorad\_r**(3alleg4)
