Bug with Implicit multiplication with parentheses

Issue #1155 closed
gilga created an issue

The bug: The calculation is false when not using the multiplication sign.

How to reproduce it:

2×(7.5−0.5)+4×(12−0.75)

result:

59

But:

2(7.5−0.5)+4(12−0.75)

(so, idem as before but without multiplication sign):

result:

202.5

I don’t even know how this calculation was done by Speedcrunch to get this result !

Note that:

2(7.5−0.5)

gives the correct result (“14”) and also

4(12−0.75)

which gives: “45”.

But using this term on the same line gives the previous error as mentioned above.

Version: SpeedCrunch master (Qt 5.15.6)

This is the git version.

Comments (7)

  1. Log in to comment