You need to sign in to do that
Don't have an account?

percentage caluculation
HI please help me caluculate percentage between 2 number in apex
for exampple
decimal a=2; decimal b=10;
how to caluculate percentage for this number ??? (2/10)*100.
math.mod() is not supporting decimal values ................ If we take integer values then we wont get correct result
The way you have mentioned in same way you can calculate this...
Decimal C =( Decimal A / Decimal B)*100