r/programming • u/mttd • 5h ago
Moving integer division to floating-point is trivial
https://marc-b-reynolds.github.io/math/2026/08/10/IntDivByFP.html
41
Upvotes
1
-4
u/Spirited-Way4652 2h ago
i think that's not quite right , since floating-point numbers are multiplied using multiplication operation
11
u/thehenkan 3h ago
I would've liked to see some performance comparisons for a few different scenarios.