.\" Generated by the Allegro makedoc utility .TH fixtoi 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME fixtoi \- Converts a fixed point to integer with rounding. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int fixtoi(fixed x); .SH DESCRIPTION Converts fixed point to integer, rounding as required to the nearest integer. Example: .nf 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); .fi .SH SEE ALSO .BR itofix (3alleg4), .BR ftofix (3alleg4), .BR fixtof (3alleg4), .BR fixfloor (3alleg4), .BR fixceil (3alleg4), .BR ex12bit (3alleg4), .BR ex3buf (3alleg4), .BR ex3d (3alleg4), .BR exblend (3alleg4), .BR excustom (3alleg4), .BR exlights (3alleg4), .BR exspline (3alleg4), .BR exstars (3alleg4), .BR exupdate (3alleg4)