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

--- Comment #3 from Orestes Mas <ores...@tsc.upc.edu> ---
(In reply to Stefan Gerlach from comment #1)
> I can not reproduce the problem. Compiling 2.8.1 on Debian 10 stable and
> using
> 180*atan2(1,1)/pi gives me 45, as expected.
> Can you try again and make a screenshot to see a possible problem?


Ok, I think you and me are both right. It seems a locale problem: my default
system locale is catalan, which has the comma as a decimal separator by
default.
If I start Labplot with an english locale (like yours, perhaps?), the atan2
function works as expected.

Please see the attached video, where the problem is shown and also shows other
related issues: if either argument of the atan2 function is a floating point
number, the only accepted decimal separator is a comma, which is
indistinguishable from the separator between the two «atan2» arguments. This
confuses the parser and leads to funny results.

Perhaps other character (like the semicolon, for instance) should be used as
functions' argument separator when the system locale uses the comma as a
decimal separator. I've seen that in other languages...

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

Reply via email to