Answer

问题及解答

[Bug] Calculator 中关于 % 运算的 Bug

Posted by haifeng on 2022-09-21 11:40:26 last update 2022-09-21 11:40:26 | Edit | Answers (0)

>> 3 * (2-6 %(3 -7))
in> 3*(2-6%(3-7))

out> 312

------------------------


>> 6%(-4)
in> 6%(-4)

out> -25

------------------------


>> 6%(4)
in> 6%(4)

out> 25

------------------------


>> 6%4
in> 6%4

out> 1

------------------------