I am making some CRM plugin using C #.
I have a variable a containing Total Number ( Format: None), which should represent the percentage of discount, it is limited to 0 to 100.
There is a variable bthat represents currency and represents price.
I have to consider the final price as Price - Discountwell as put the result in a variable c, that is, also Currency
Is it possible to do
c = b*(100-a)/100;
Or is there some kind of transformation?
source
share