- 博客(1)
- 收藏
- 关注
原创 C#小数取整
int() 隐式转换;如double+int将int转换为double 显式转换: (int)3.14=3;不四舍五入 Int.Parse():将string转换为int; Convert.ToInt32():四舍五入但是当为n.5是,取相邻整数中偶数。 另Convert.ToInt32(null)=0 int.Parse(null)报错 ...
2020-01-04 10:10:16
1103
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅