https://bugs.kde.org/show_bug.cgi?id=495232

--- Comment #3 from Wolfram Klaus <wolfram.kl...@fu-berlin.de> ---
(In reply to Gabriel Barrantes from comment #1)
> I am getting "3e8/3e8 = 1", I guess you are getting "3⏨8/3⏨8 = 1e+16", but
> this would be expected as the "⏨" is actually "*10^" so it does
> "3*10^8/3*10^8". Actually gnome calculator does the same, check the
> screenshot attached.

It is the expected behaviour to get 1E16 if you type "*" "1" "0" "^", because
the "*" is an operator of equal precedence with /.

It is not the expected behaviour of the "*10^" key. This key has been in use
for decades on calculators (including kcalc) to enter numbers in scientific
notation without the need to surround them by braces. It is supposed to behave
like 3E8 in most programming languages:

#include <stdio.h>
int main()
{
  float one=3E8/3E8;
  printf("%f", one);
}
prints  1.000000 on the terminal, as it should.

I just installed gnome-calculator, I couldn't even find the "*10^" key.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to