Thank you for your reply.
After changing the precision I also got the result.
Nevertheless I’m just wondering because the equation is 0.5 - 1. For this I don’t need the precision of 10 digits.
I defined this test in appium and got an error because the expectation is -0.5 but the test result is -0,500000000004. Till now I have not implemented any tool settings.
The “stdlib” and “math” libraries and other library header files in ‘/usr/include/’ shipped with openSUSE Leap offer support for “long double” in one form or another.
And, which ever way you look at it, “long double” is a floating point data type.
Therefore, the behaviour will depend on how the application defines this type at compile time.
And, it’ll also depend on the floating point processor behaviour of the hardware platform you’re currently using.
For the case of the GNU Compiler Collection, for X86 processors, the “long double” type is defined as being “80 bit extended precision” – assuming 8 bits per digit – 10 digits.
Therefore, for my Use Case, setting the KCalc precision to 10 digits should, usually, deliver the expected calculation results – hopefully, reliably …