al_fixfloor(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

🌈 al_fixfloor(3) β€” Library Functions Manual 🌈

okay bestie, welcome to the Allegro 5 API page for al_fixfloor β€” it’s giving β€œfloor, but make it fixed-point” πŸ’…βœ¨

🌸 NAME 🌸

al_fixfloor β€” Allegro 5 API πŸŽ€

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

int al_fixfloor(al_fixed x);

πŸ’– DESCRIPTION πŸ’–

okay so this icon returns the greatest integer not greater than x β€” translation: it rounds toward negative infinity 🫢

Example:

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

πŸ¦‹ SEE ALSO πŸ¦‹


From the Allegro reference manual β€” source/version vibes only, and the date isn’t shown on this page, ngl. Bye bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms