示例#1
0
        public string AreaToString(DistanceUnits unit, int decimalPlaces)
        {
            double num = Width.In(unit) * Height.In(unit);

            decimalPlaces = Range.Range.clamp(decimalPlaces, 0, 10);
            return(string.Format("{0} {1}", num.ToString("N" + decimalPlaces), areaUnitLut[unit]));
        }