this post was submitted on 17 Sep 2023
428 points (96.5% liked)

Programmer Humor

19207 readers
1527 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] IWantToFuckSpez@kbin.social 57 points 1 year ago (1 children)

Yeah round down and transfer the remainder to an account you own.

[–] psud@aussie.zone 11 points 1 year ago (1 children)
[–] elbarto777@lemmy.world 9 points 1 year ago* (last edited 1 year ago) (1 children)

No, not Lex. Gus!

Awesome movie, regardless!

[–] psud@aussie.zone 3 points 1 year ago* (last edited 1 year ago)

I just recalled, in that project I did have to divide money, which would leave fractional cents

It was a budgeting program, I could put rogue cents where I liked. I think my solution made accounts due $12.553333333... (internally 1255.3333...) each pay period get 12.54, so after n/3 pay periods they'd be 2n cents over. I could deal with that imprecision.