So the answer is that casting from a float or double to an integral value always truncates.

 
  • 所以答案就是: 将一个float或double值造型成整数值后,总是将小数部分“砍掉”,不作任何进位处理。
今日热词
目录 附录 查词历史