c# get percentage of int code example Example: get percentage c# (current / maximum).ToString("0.00%");