Skip to content

Extra Cent on Tax Inclusive Calculation / Banker's Rounding #469

@fahimalizain

Description

@fahimalizain

Please consider an Item that costs $40 with inclusive tax of 5%. When we break this into SubTotal, TaxAmount and GrandTotal, the following is what we get:

- SubTotal = 40 - (40 * 5 / (100 + 5)) = 38.0952.. = $38.10
- Tax Amount = 38.1 * 5 / 100 = 1.905 = $1.91
- Grand Total = 38.10 + 1.91 = $40.01                                    <-- Extra 0.01 Cent

The expectation is that Bankers Rounding / Round to Nearest, Ties to Even will fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions