double rate = (double)1 / 3;
Console.WriteLine(rate.ToString("0.0%"));
double rate = (double)1 / 3;
Console.WriteLine(rate.ToString("0.0%"));
本文标题:C# 整数相除取百分比
本文链接:https://www.haomeiwen.com/subject/cfrgpctx.html
网友评论