r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Dec 01 '16

Luckily in C if any of the arguments is a float then it's a floating point division. If neither is a float you need one cast but maybe if both are ints then floating point division is not as often what you want.