4 ms·
The article already accounts for a difference between Canadian and US currency -- the US has no $2 coins and nearly nonexistent $1 coins, and the smallest bill
by rspeer 9y ago
The article already accounts for a difference between Canadian and US currency -- the US has no $2 coins and nearly nonexistent $1 coins, and the smallest bill in Canadian currency is $5.
They suggest "optimizing" Canadian change with an 83-cent piece... which of course makes no sense once the penny is eliminated, so now there must be a different optimal coin.
- uiri 9y agoThe author could easily base calculations off of cost(100; 1, 2, 5, 20, 40) and multiply the result by 5 to find the new optimal coin. This avoids unduly weighting values which are impossible without a penny which is what cost(500; 5, 10, 25, 100, 200) would do.