Hacker News new | ask | show | jobs
by tchalla 2577 days ago
I once read a similar apocryphal narrative. Someone, kept receiving 0$ credit card bills and the company sent repeated reminders with warnings. The person called, sent letters to discuss the situation but to no avail. The person finally gave up and wrote a 0$ check and they stopped sending letters. However, it led to a computer systems crash as the credit card company software encountered a "Divide by Zero" error due to eh 0$ check.
4 comments

I'm having a hard me thinking of a case where you'd want to divide by an amount of money. What am I missing?
For example to calculate the expected time left to pay the remaining debt if you make a monthly payment of that amount.
So dividing by number of months, which is not dividing by an amount of money.
var balance = 0

var lastPayment = 0

var remainingPaymentsAtThisRate = balance/lastPayment

// divide by zero error

Surely that doesn't account for interest?
My goal with this 3-line pseudocode snippet was not to reproduce a banking loan administration system in its entirety, but just to show a place where it could make sense to divide by currency.
Or to produce a report on percent of debt that has been repaid.
>”However, it led to a computer systems crash.”

Reminds me of Bobby Tables

For those out of the loop : https://xkcd.com/327/
And the real life use http://i.imgur.com/RmfbEsZ.jpg
Probably the computer that crashed was in charge of sending out letters.
I receive $0 bills from some sources, and while they don't keep sending them, my bank's website (CapitalOne) does keep reminding me about it as an unpaid bill.

And it won't let me pay $0. I have to mark it as "I paid it myself, outside of your system". That makes it shut up.