Calculations with various data types in CRM

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?

+4
source share
1 answer

, Dynamics CRM , , , .

b , , , Money, Value, .

+2

Source: https://habr.com/ru/post/1652989/


All Articles