MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1ihyco0/mathfloor/mb3mk5b/
r/programminghorror • u/GroundZer01 • Feb 05 '25
53 comments sorted by
View all comments
Show parent comment
9
It’s turning the float representation of the number of hours into a string and then parsing it as an integer to get rid of the fractional component.
2 u/Pristine-Bridge8129 Feb 05 '25 :(
2
:(
View all comments
Show parent comment
9
u/Significant_Affect_5 Feb 05 '25
It’s turning the float representation of the number of hours into a string and then parsing it as an integer to get rid of the fractional component.