我无法想通为什么meter/30.48-foot不为0呢?挺难理解,是我基础哪里漏了吗?
收起
meter/30.48是浮点数 ,foot是整数啊int foot = meter / 30.48,这里foot实际只是meter/30.48的整数部分啊,当然再想减不一定是0
报告相同问题?