Bug 490851

Summary: Unexpected calculations results with 0 first
Product: [Applications] kcalc Reporter: Alexei <le5h>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gabriel.barrantes.dev
Priority: NOR    
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 24.07.80
Sentry Crash Report:

Description Alexei 2024-07-26 10:26:53 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Unexpected calculations results with 0 first

STEPS TO REPRODUCE
1. 726 x 7 = 5082
2. 0726 x 7 = 3290

OBSERVED RESULT
3290

EXPECTED RESULT
5082

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.10.0-3-MANJARO (64-бита)
(available in About System)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
---
Comment 1 Gabriel Barrantes 2024-07-26 13:58:52 UTC
Should be in the new release, "0" prefixed numbers used to be interpreted as octal, now "0o" is the octal prefix.

*** This bug has been marked as a duplicate of bug 487837 ***