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

--- Comment #6 from Evan Teran <evan.te...@gmail.com> ---
I wouldn't say it is a "bug" as it is working as expected, but perhaps a
mis-feature since you're not the first to report this behavior as undesirable,
for example, 020 in octal *is* 16 decimal.

The reason for this behavior is that conventionally the following prefixes
mean:

0xNNN -> hex
0bNNN -> binary
0NNN -> octal
0oNNN -> a new, less ambiguous notation for octal, but not universally
prevalent

The reason for this behavior is that people copy and paste numbers and
previously we've had bug reports where people said "I pasting 0x1234 in decimal
mode results in NaN!" So there unfortunately seems to be no behavior that will
be intuitive for everyone. Some people want it to respect the source input
format, some want to respect the chosen mode.

All of that being said, while I was the maintainer for kcalc 20 years ago, it's
been a LONG time since I've even looked at the code. I just wanted to chime in
since I saw the email and thought I could shed light on WHY it is happening so
that other contributors who are more active will know where to start.

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

Reply via email to