We have a sales tax function defined as:
where half cents are rounded to the nearest cent.
We can calculate it for p = 14.37 as:
In this case, we round down because the third decimal is 2 and is less than 5.
Answer: The correct tax is $0.86.
3.5m questions
4.4m answers