Summary: | Some calculations, such as 1024x1024, yield results in scientific notation but should not | ||
---|---|---|---|
Product: | [Applications] kcalc | Reporter: | rmedina |
Component: | general | Assignee: | Bernd Wuebben <wuebben> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Fixes kcalc_core.cpp so semi-large numbers like 1048576 display correctly |
Description
rmedina
2002-12-09 08:10:15 UTC
Created attachment 588 [details]
Fixes kcalc_core.cpp so semi-large numbers like 1048576 display correctly
I don't know if this is the best or correct way to fix the problem, but it
appears to work for me.
Subject: KDE_3_1_BRANCH: kdeutils/kcalc [POSSIBLY UNSAFE] CVS commit by staikos: Apply patch contributed in bug report #51672 months ago. It works for me so I think it's good to apply. CCMAIL: 51672-done@bugs.kde.org M +2 -2 kcalc_core.cpp 1.59.2.1 [POSSIBLY UNSAFE: printf] --- kdeutils/kcalc/kcalc_core.cpp #1.59:1.59.2.1 @@ -1677,5 +1677,5 @@ void QtCalculator::UpdateDisplay() DISPLAY_AMOUNT); } else { - str_size = snprintf(display_str, DSP_SIZE, PRINT_LONG, DISPLAY_AMOUNT); + str_size = snprintf(display_str, DSP_SIZE, PRINT_LONG_BIG, kcalcdefaults.precision, DISPLAY_AMOUNT); } |