fixtoi (3) - Linux Manuals
fixtoi: Converts a fixed point to integer with rounding. Allegro game programming library.
Command to display fixtoi
manual in Linux: $ man 3 fixtoi
NAME
fixtoi - Converts a fixed point to integer with rounding. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int fixtoi(fixed x);
DESCRIPTION
Converts fixed point to integer, rounding as required to the nearest
integer. Example:
int result;
/* This will put 33 into `result'. */
result = fixtoi(itofix(100) / 3);
/* But this will round up to 17. */
result = fixtoi(itofix(100) / 6);
SEE ALSO
itofix(3),
ftofix(3),
fixtof(3),
fixfloor(3),
fixceil(3),
ex12bit(3),
ex3buf(3),
ex3d(3),
exblend(3),
excustom(3),
exlights(3),
exspline(3),
exstars(3),
exupdate(3)
Pages related to fixtoi
- fixtof (3) - Converts a fixed point to floating point. Allegro game programming library.
- fixtorad_r (3) - Constant to convert angles in fixed point format to radians. Allegro game programming library.
- fixtan (3) - Fixed point tangent of binary angles. Allegro game programming library.
- fix_filename_case (3) - Converts a filename to a standardised case. Allegro game programming library.
- fix_filename_slashes (3) - Converts all the directory separators to a standard character. Allegro game programming library.
- fixacos (3) - Fixed point inverse cosine lookup table. Allegro game programming library.
- fixadd (3) - Safe function to add fixed point numbers clamping overflow. Allegro game programming library.
- fixasin (3) - Fixed point inverse sine lookup table. Allegro game programming library.