how to find percentage
I want to show risk ratio in my application.

I want to get this value in percent for example

let a = 100, b = 50;

I want to show the value in percentage value = a - b;
 = 50;

I want to show this in percentage.

any suggestions.

Thanks In Advance.
how to find percentage
===

I want to show risk ratio in my application.

I want to get this value in percent for example

let a = 100, b = 50;

I want to show the value in percentage value = a - b;
 = 50;

I want to show this in percentage.

any suggestions.

Thanks In Advance.