int iValue = (int)Math.Round(flotValue * 10000); //小数点后两位前移,并四舍五入 flotValue = (float)(iValue / 10000.00f); return flotValue; } 申明:以上文字为“武汉汉码科技有限公司”原创,转载时务必注明出处。 技术分享。沟通你我。共同进步!