c# double保留2位小数

double interval = (double)1 / (endIndex - startIndex);
            interval = Math.Round(interval , 2);
原文地址:https://www.cnblogs.com/liuxinls/p/3783876.html