Grade1 경사도 public static double Grade(double gap, double distance) { double rtnGrade = 0.0; rtnGrade = Math.Round(gap / Math.Sqrt((distance * 1000) * (distance * 1000) - (gap * gap)) * 100, 2); return Common.NaNValue(rtnGrade); } public static double NaNValue(double value) { double rtnValue = !double.IsNaN(value) ? value : 0; return rtnValue; } 2023. 1. 16. 이전 1 다음