aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-12-19 12:14:39 -0500
committerKen Moore <ken@ixsystems.com>2016-12-19 12:14:39 -0500
commitcea730d170be4cb2e06d36e5a5a892f8902e6517 (patch)
tree153ec4acf267b6bde3c35677bf47300dd77c360f /src-qt5
parentHide the small menu popup during the lumina-fm init routine. (diff)
downloadlumina-cea730d170be4cb2e06d36e5a5a892f8902e6517.tar.gz
lumina-cea730d170be4cb2e06d36e5a5a892f8902e6517.tar.bz2
lumina-cea730d170be4cb2e06d36e5a5a892f8902e6517.zip
Bump up the reported precision of the lumina-calculator result to a max of 7 digits before switching to exponential notation.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/desktop-utils/lumina-calculator/mainUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-calculator/mainUI.cpp b/src-qt5/desktop-utils/lumina-calculator/mainUI.cpp
index 057e4ddd..6ba7450b 100644
--- a/src-qt5/desktop-utils/lumina-calculator/mainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-calculator/mainUI.cpp
@@ -121,7 +121,7 @@ void mainUI::start_calc(){
double result = strToNumber(eq);
if(result!=result){ return; } //bad calculation - NaN's values are special in that they don't equal itself
QString res = "[#%1] %2 \t= [ %3 ]";
- ui->list_results->addItem(res.arg(QString::number(ui->list_results->count()+1), QString::number(result, 'G'), ui->line_eq->text()));
+ ui->list_results->addItem(res.arg(QString::number(ui->list_results->count()+1), QString::number(result, 'G', 7), ui->line_eq->text()));
ui->list_results->scrollToItem( ui->list_results->item( ui->list_results->count()-1) );
ui->line_eq->clear();
}
bgstack15