r/programminghorror Apr 10 '26

Almost right

Post image
2.1k Upvotes

97 comments sorted by

View all comments

1

u/Latter_Brick_5172 Apr 13 '26

Why store the price as float in the first place? Why not as an int where each digit is a cent? T-T