将double转int,我个人比较常用(int)和Convert.ToInt32()
(int)貌似是直接截断小数位,(int)5.5就是5,(int)3.5就是3
Convert的转换就是向偶数靠拢

 

int(5.5)中的学问!_数位