I think the behavior of taking 6% as 6/100 is correct to keep things
simple, when you do not give a % of something, it is interpreted as % of
1. This is the reason for 1360 - 6% giving the answer of 1359.94. The
argument can be that the calculator must apply the % of the number
before it, i.e. 1360.

But this can become a bit tricky when it is a part of a complex
calculation like 150 + 240 - 10% + 300 - 10%. So, as per the bug the
expected behavior is..

150 + 240 + 10% of (150 + 240) + 300 - 10% of (150 + 240 + 10% of (150 +
240) + 300).

This shows that how tricky it might become that the calculator needs to
be extra intelligent. Presuming it to be a simple calculator providing
basic mathematical functions, interpretation of 6% as 6/100 = .06 is not
a bug.

-- 
Incorrect Math in version 5.9.14
https://bugs.launchpad.net/bugs/144355
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to