Commit e374492d authored by Lukas Pichler's avatar Lukas Pichler Committed by Nate Graham
Browse files

Change krunner calculator to display significant digits

Summary:
Change the qalculate krunner module to print only significant digits instead of an interval as this is sometimes unreadable.
BUG: 412627
FIXED-IN: 5.18.0

Test Plan:
Before this change:
{F7828390}
After:
{F7828389}

Reviewers: broulik, #plasma

Reviewed By: broulik, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26149
parent cc9a1a68
......@@ -113,6 +113,9 @@ QString QalculateEngine::evaluate(const QString& expression, bool *isApproximate
po.negative_exponents = false;
po.lower_case_e = true;
po.base_display = BASE_DISPLAY_NORMAL;
#if defined(QALCULATE_MAJOR_VERSION) && defined(QALCULATE_MINOR_VERSION) && (QALCULATE_MAJOR_VERSION > 2 || (QALCULATE_MAJOR_VERSION == 2 && QALCULATE_MINOR_VERSION >= 2))
po.interval_display = INTERVAL_DISPLAY_SIGNIFICANT_DIGITS;
#endif
result.format(po);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment