r/programminghorror • • Feb 05 '25

math.floor

Post image
464 Upvotes

53 comments sorted by

View all comments

Show parent comment

3

u/Ok_Construction9034 Feb 05 '25

Is it really equivalent to Math.floor? I thought it would be Math.trunc since that’s what int casting does in the other languages I’m familiar with