logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fixtoi - Converts a fixed point to integer with rounding. Allegro game programming library.

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);

Name

       fixtoi - Converts a fixed point to integer with rounding. Allegro game programming library.

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.3                                  fixtoi(3alleg4)

Synopsis

#include<allegro.h>intfixtoi(fixedx);

See Also