double 转 int ,向下取整问题

(int)会取整,Convert.ToInt32()会四舍五入

(int)(16/3)

 

posted @ 2017-09-19 17:02  花生打代码会头痛  阅读(518)  评论(0)    收藏  举报