Margin and Commission count?

Good evening.

If 2 courses "rouble/dollar" Example 59.500 RUB -> 1$

x = 59.500
y = 1

how to add to these prices the Commission % and margin 2%.
I just have such errors as the most scary.
Help please, really need your help!

P. S: the Markup and the Commission need to add to the first and second course!
June 14th 19 at 21:00
1 answer
June 14th 19 at 21:02
1. Ask algorithm from the client. It happens in different ways I think.
2. And the margin and Commission are one and the same mathematically.
3. For example, a typical margin of 2 percent is considered as "Sum * (100 + 2) / 100".
4. There are still questions - and when to round. With a single ruble. Or already on the whole amount. In most of the discrepancies are. Cm. paragraph 1.
5. Since the accuracy is known in advance, it is advisable to consider in the whole (by sliding the decimal point, that is, multiplying)

Find more questions by tags Mathematics