al_fixfloor(3alleg5)
π al_fixfloor β Allegro 5 API π
okay bestie, welcome to the al_fixfloor(3alleg5) page, straight out of the Allegro reference manual π this one's a little math-y but it's lowkey adorable, i promise. it's giving "round down and never look back" energy β¨
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
int al_fixfloor(al_fixed x);
like, that's it. one function, one argument, no drama π
π¦ DESCRIPTION π¦
so what does it actually do? al_fixfloor returns the greatest integer that is not greater than x. in normal human words: it rounds towards negative infinity. it always scooches down, never up, no matter what. periodt π
here's the example from the page, verbatim, no cap:
int result;
/* This will put 33 into `result'. */
result = al_fixfloor(al_itofix(100) / 3);
/* And this will round down to 16. */
result = al_fixfloor(al_itofix(100) / 6);
so the first one lands 33 in result, and the second one rounds down to 16. the way that math just *works*β¦ obsessed ππ
π SEE ALSO π
go check those out too, they're the siblings fr fr π«Ά
and that's the whole page, bestie β¨ this was al_fixfloor(3alleg5) from the Allegro reference manual β sending you all the fixed-point floor vibes, mwah ππ
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms