Query: fixtoi
OS: freebsd
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
fixtoi(3alleg4) Allegro manual fixtoi(3alleg4) 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(3alleg4), ftofix(3alleg4), fixtof(3alleg4), fixfloor(3alleg4), fixceil(3alleg4), ex12bit(3alleg4), ex3buf(3alleg4), ex3d(3alleg4), exblend(3alleg4), excustom(3alleg4), exlights(3alleg4), exspline(3alleg4), exstars(3alleg4), exupdate(3alleg4) Allegro version 4.4.2 fixtoi(3alleg4)
Related Man Pages |
---|
itofix(3alleg4) - suse |
fixtoi(3alleg4) - suse |
fixtoi(3alleg4) - netbsd |
fixtoi(3alleg4) - v7 |
fixtoi(3alleg4) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Uregnet help |