Convert.ToInt32与int区别强制转换区别

一直以为这2个是一样的,今天才发现

(int)只取整数部分

Convert.ToInt32()四舍五入取整数

原文地址:https://www.cnblogs.com/zsx-blog/p/14325041.html