799
submitted 11 months ago by LolaCat@lemmy.ca to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] saturnalia@lemmy.nz 9 points 11 months ago

I spent 4 hours today trying to figure out why a calculation to get a percentage (in decimal) was always returning exactly 1 no matter what parameters I tried passing to it. Turns out I'd forgotten to cast the ints being provided to decimal, even though I've had to do that so many times before. I'm not a sharp man

this post was submitted on 13 Oct 2023
799 points (93.7% liked)

Programmer Humor

32171 readers
228 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS