duobule 转 int 问题

int  a=(int)5.9;

结果是5

会出现精度丢失问题

posted on 2022-04-15 11:27  悄悄的来,匆匆的走  阅读(22)  评论(0编辑  收藏  举报

导航