{"title":"Design details: Rounding","url":"https://jonas-paprotka.de/docs/design-details-rounding/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/design-details-rounding, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/design-details-rounding","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"Rounding residuals can occur when you value the cost of an inventory decrease measured in a different quantity than the corresponding inventory increase.","date":"2026-03-17","meta":{"topic":"article"},"outline":[{"level":2,"title":"Example","slug":"example","at":807,"chars":1289},{"level":2,"title":"Related information","slug":"related-information","at":2096,"chars":348}],"text":"Rounding residuals can occur when you value the cost of an inventory decrease that is measured in a different quantity than the corresponding inventory increase. Rounding residuals are calculated for all costing methods when you run the Adjust Cost - Item Entries batch job.\nWhen you use the average costing method, the rounding residual is calculated and recorded on a cumulative, entry-by-entry basis.\nWhen you use a costing method other than Average, the rounding residual is calculated when the inventory increase has been fully applied, that is when the remaining quantity for the inventory increase is equal to zero. A separate entry is then created for the rounding residual, and the posting date on this rounding entry is the posting date of the last invoiced value entry of the inventory increase.\n## Example\nThe following example illustrates how different rounding residuals are handled for the average costing method and non-Average costing method, respectively. In both cases, the Adjust Cost - Item Entries batch job has been run.\nThe following table shows the item ledger entries that the example is based on.\nPosting Date|Quantity|Entry No.\n01-01-20|3|1\n02-01-20|-1|2\n03-01-20|-1|3\n04-01-20|-1|4\nFor an item using the Average costing method, the rounding residual (1/300) is calculated with the first decrease (entry number 2) and is carried forward to entry number 3. Therefore, entry number 3 is valued at -3.34.\nThe following table shows the resulting value entries.\nPosting Date|Quantity|Cost Amount (Actual)|Item Ledger Entry No.|Entry No.\n01-01-20|3|10|1|1\n02-01-20|-1|-3.33|2|2\n03-01-20|-1|-3.34|3|3\n04-01-20|-1|-3.33|4|4\nFor an item using a costing method other than Average, the rounding residual (0.01) is calculated when the remaining quantity for the inventory increase is zero. The rounding residual has a separate entry (number 5).\nThe following table shows the resulting value entries.\nPosting Date|Quantity|Cost Amount (Actual)|Item Ledger Entry No.|Entry No.\n01-01-20|3|10|1|1\n02-01-20|-1|-3.33|2|2\n03-01-20|-1|-3.33|3|3\n04-01-20|-1|-3.33|4|4\n01-01-20|0|-0.01|1|5\n## Related information\ndesign-details-inventory-costing\ndesign-details-cost-adjustment\ndesign-details-costing-methods\nManaging Inventory Costs<finance-manage-inventory-costs>\nfinance\nWork with Business Central<ui-work-product>\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}