.\" Automatically generated by Pandoc 3.1.12.1 .\" .TH "al_fixtoi" "3" "" "Allegro reference manual" "" .SH NAME al_fixtoi \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] int al_fixtoi(al_fixed x); .EE .SH DESCRIPTION Converts fixed point to integer, rounding as required to the nearest integer. .PP Example: .IP .EX int result; \f[I]/* This will put 33 into \[ga]result\[aq]. */\f[R] result = al_fixtoi(al_itofix(100) / 3); \f[I]/* But this will round up to 17. */\f[R] result = al_fixtoi(al_itofix(100) / 6); .EE .SH SEE ALSO al_itofix(3), al_ftofix(3), al_fixtof(3), al_fixfloor(3), al_fixceil(3).