Betzalel.SimpleMulticastAnalyzer.Statistics.GetPercentage C# (CSharp) 메소드

GetPercentage() 개인적인 정적인 메소드

private static GetPercentage ( ulong part, ulong total ) : double
part ulong
total ulong
리턴 double
        private static double GetPercentage(ulong part, ulong total)
        {
            return total == 0 ? 0 : Math.Round(part * 100 / (double)total, 2);
        }