I have percent field per. I am using this field in apex coding for calculation purpose.
My formula in code is:
Field_A__c = Field_B__c * Percent__c
Suppose Percent__c = 75
(i.e 75%) and Field_B__c = 35
. In that case, Field_A__c
should be 35 * 0.75 = 26.25
. But it is actually doing 35 * 75 = 2625
.
What can we do here?