Money is a Decimal
Salesforce currency is a Decimal.
Your task
Round Opportunity tax and total with HALF_UP, then round the same tie two different ways.
Decimal amount = 249.50;
Decimal taxRate = 0.08;
Decimal tieAmount = 1.225;Requirements
setScale(2,should be presentRoundingMode.HALF_UPshould be presentAmount: 249.50should be printedTax: 19.96should be printedTotal: 269.46should be printedHALF_UP tie: 1.23should be printedDefault tie: 1.22should be printed