percentage c# code example
Example 1: percentage in c#
number = (percentage / 100) * totalNumber;
Example 2: percentage in c#
percentage = (yourNumber / totalNumber) * 100;
Example 3: get percentage c#
(current / maximum).ToString("0.00%");
number = (percentage / 100) * totalNumber;
percentage = (yourNumber / totalNumber) * 100;
(current / maximum).ToString("0.00%");