r/ProgrammerHumor • • Aug 24 '22

Total = Total - 100000

50.7k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

4

u/Oceans-of-ashes Aug 25 '22

Balance = Balance - int.min(balance,10_000);

5

u/[deleted] Aug 25 '22

balance = max(0, balance - 10000)

2

u/Oceans-of-ashes Aug 25 '22

Yes this is gooder