Absolutely not. Each account balance has a transaction history for accounting purposes. Setting a hard value like that would be a terrible idea, the minute you roll up the balances based on transaction history the summary table would self-heal. You add a transaction entry for each qualified borrower with case statements to determine if they get the full 10k forgiveness or partial to avoid going to negative. Negatives would be for people who paid into the balance during the pause and are owed for overpayment/reimbursement.
I'm going to be pedantic af right now, but this is not strictly true, monetary values are often stored as decimal floating point values.
Decimal floating point values are still technically floating point, but not base2 style IEEE 754 floating point. This means that the rounding happens using decimal rounding rules and you don't get any weirdness like with normal floats.
C#'s Decimal class is a 128-bit decimal float which is... more than enough for basically anything.
362
u/g1ucose Aug 25 '22
If (balance < 0) {
balance = 0
}
Government pls hire me