5变成5.1运算会出错。因为%eval除了输出时只保留整数部分,还有一点就是运算时如果出现非整数的运算,是会报错的。
For arithmetic expressions, if an operation results in a non-integer value, %EVAL truncates the value to an integer. Also, %EVAL returns a null value and issues an error message when non-integer values are used in arithmetic expressions.


雷达卡
京公网安备 11010802022788号







