here is scenario :
I am trying to create AR - Invoice via service layer. I have an item that have 3 UOM and BaseUOM is KG
and i want to convert it to item base quantity.
1KG = 1KG
1.82LITTER = 1KG
1 Ton = 1000KG
and i test 2 cases and i see something is difference. when i input quantity value:
1. base on calculation => 1 / 1.82 = 0.5494505494505 and then i getthe reponse from api field ` "InventoryQuantity": 0.54950` in DocumentLine Item.
2. base on calculation => (1 / 1.82 ) * 1662.37Liters = 913.3901098901099 and then i getthe reponse from api field ` "InventoryQuantity": 913.39090"` in DocumentLine Item. as the math round up it should be 913.39011 if we take decimal number 6 digits. but why it 913.39090
could anyone explain me why or what is the formular to find base quantity?