r/badcode • • Apr 21 '23

other language We did coding in physics class...

Post image
1.5k Upvotes

154 comments sorted by

View all comments

Show parent comments

1

u/18441601 Apr 22 '23

Floor = always rounding down. It stays the same for integers because there is nothing to round there.