rounddown(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Bestie, this is rounddown(9) from the Kernel API Manual β€” the little kernel math page that rounds down to the next specified multiple. It's giving numbers but make it cute. πŸ’…βœ¨

🌸 NAME 🌸

rounddown β€” round down to next specified multiple πŸŽ€

πŸ’… SYNOPSIS πŸ’…

rounddown (x , y );

πŸŽ€ ARGUMENTS πŸŽ€

  • x β€” the value to round, bestie. Like, the number you're about to snap down. πŸ’–
  • y β€” the multiple to round down to. This is the step size you're snapping to. πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

Rounds x down to the next multiple of y. That's the whole vibe: value plus multiple, rounded down. Periodt. ✨

If y will always be a power of 2, consider using the faster round_down. No cap, that's the speedier option for that exact situation. πŸ’¨

πŸ¦‹ SEE ALSO πŸ¦‹

Go check out the kernel file ./include/linux/math.h and these iconic math-adjacent friends:


Signed, sealed, slayed: source/version is ./include/linux, date is October 2026, and this whole page is rounddown(9). Byeee, bestie πŸ«ΆπŸ’–πŸŒˆ

πŸ“¦ where this page comes from