I do not know how to proceed for a exact opération.
Imagine we have a product sailed by parts.
On part is 1/37 of the price the other is 12/37 and the last part is 24/37.
imagine the product is 123 €
so 1st part is 123/37 3.324324324324324 will be 3.32
2nd part is 12123/37 39.891891891891895 will be 39.89
3rd part is 12324/37 79.78378378378379 will be 79.78
the sum is 122.99000000000001
the same with numbers instead of fraction. How do you solve this problem on your side ?
So I understand the you as the company, so it is for me a purchase.
It is important to use the same semantic as Tryton on this forum. So always name things from the company perspective.
You set a sale price for each component as you want them to be.
Indeed I do not understand your problem. You seem to complaint about mathematics that rational numbers can have infinite repeating decimals.
i am not complaining about that i was only asking how the others manage that, because i think that collective intelligence is better than my intelligence.
I take en example. under linux and the tool bc
the simple opération 1/3*3 makes 0.9999999…
in python interpreter it makes 1.
So someone would/could have sold the problem at “our” little level.
If you want the price of the components summing the price of the kit, the solution is to correct manually the price of one of the components.
So you can set the first part a price of 3.33 (instead of the calculated 3.32), or a price of 39.90 to the second part (instead of 39.89) or 79.79 to the third part (instead of 79.78).