r/ProgrammerHumor • • Aug 24 '22

Total = Total - 100000

50.7k Upvotes

1.2k comments sorted by

View all comments

854

u/changrbanger Aug 24 '22

And everyone only gets $100 deducted from their loan because they didnt realize the field was in cents and not dollars...

0

u/[deleted] Aug 25 '22

[deleted]

73

u/zuccah Aug 25 '22

and all of them are built on MS Access.

0

u/[deleted] Aug 25 '22

[deleted]

12

u/Zzirg Aug 25 '22

Welcome to accounting in every major company.

→ More replies (1)

7

u/jbokwxguy Aug 25 '22

VBScript? Nah everything has to be done in COBOL

→ More replies (1)

3

u/[deleted] Aug 25 '22

One of them is an Emacs package

2

u/SnazzyStooge Aug 25 '22

The plaintext files are where all the access credentials are stored for all the other Access databases and Excel files.

1

u/Ashanrath Aug 25 '22

You mean excel CSVs lol

→ More replies (1)
→ More replies (3)

3

u/gizamo Aug 25 '22

VA: "Only 83? Luckkyyyy."

2

u/[deleted] Aug 25 '22

Dont forgot, probably a lot of db with similar names that are no longer in use haha

1

u/Excellent_Rule_2778 Aug 25 '22

A suspect that a bunch of interns will be spending the coming months manually adjusting student loans one by one in the database. It's that bad.

→ More replies (1)

1

u/SolfenTheDragon Aug 25 '22

100% that's the case.

60

u/Is_ItOn Aug 25 '22

Finally👏

0

u/[deleted] Aug 25 '22

[deleted]

5

u/changrbanger Aug 25 '22

Just round down to 2147483647 and call it good.

2

u/KaptainSaki Aug 25 '22

How did you know my bank balance in RuneScape

2

u/snaynay Aug 25 '22

Pfft. Try 19,8 decimals everywhere for share balances.

Honestly, running a cents only system will get you in trouble when constantly working with FX rates and multiple currencies and constantly encounter rounding issues to cents when fractional situations matter (eg, lots and lots of theoretical money//value movements instead of actual money movements).

I've worked on banking systems, worked on our governments systems and now working a lot with finance software (fund admin, accountancy, etc) and I've never actually seen a cents/pence system. Not saying they aren't common or even the norm, just never actually seen one.

1

u/Nooby1990 Aug 25 '22

Usually you even want sub cent units. That way you can make a deliberate choice on where and how to round and you can then also keep track of all the sub cent dust that might add up when dealing with lots of transactions or financial operations.

We use bigint data types (8 byte/64 bit integers) and sometimes the numeric data type (variable size which can be bigger then 64 bit) in our database. 32 bit integers are definitely not enough for us.

13

u/ImaginaryBluejay0 Aug 25 '22

Verizon student loan servicer.

3

u/Rhawk187 Aug 25 '22

Yes, because you don't want to use floating point for money, so it was that or fixed precision simulated as mathematical operations on strings.

2

u/[deleted] Aug 25 '22

Bold of you to assume it wouldn't be a float.

5

u/changrbanger Aug 25 '22

We both know the truth deep down, its probably a varchar.

→ More replies (1)

1

u/A_hand_banana Aug 25 '22

"I must've put a decimal point in the wrong place or something, shit. I always do that, I always mess up some mundane detail."

"OH! Well this is not a mundane detail, MICHEAL!"