- 整数除法 integer division
结果永远向负极限化整;
always round down towards negative infinity;
运算中任一数是浮点数的话,结果为浮点数
if one number is float, returns a float answer still- 浮点数不精确问题
并不是所有小数都能被精确显示出来,这是因为浮点数占用了固定的chunk of memory。
用于存储浮点数的memory限制了它表示的数字的精确性。
- 浮点数不精确问题
相关文章: