Y
Hacker News
new
|
ask
|
show
|
jobs
by
vollmond
2575 days ago
var balance = 0
var lastPayment = 0
var remainingPaymentsAtThisRate = balance/lastPayment
// divide by zero error
1 comments
cbzoiav
2574 days ago
Surely that doesn't account for interest?
link
vollmond
2574 days ago
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.
link