close
使用 Match.round() 四捨五入
double Result = Math.Round( 12.345, 2, MidpointRounding.AwayFromZero);
//Result=12.35
reference: http://msdn.microsoft.com/en-us/library/ef48waz8.aspx
文章標籤
全站熱搜
使用 Match.round() 四捨五入
double Result = Math.Round( 12.345, 2, MidpointRounding.AwayFromZero);
//Result=12.35
reference: http://msdn.microsoft.com/en-us/library/ef48waz8.aspx
留言列表