We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 74b0eaa commit 2a13669Copy full SHA for 2a13669
src/app/qgsfieldcalculator.cpp
@@ -198,9 +198,9 @@ void QgsFieldCalculator::accept()
198
199
if ( f.type() == QVariant::Double && f.precision() > 0 )
200
{
201
- v = QString::number( value.number(), 'g', f.precision() );
+ v = QString::number( value.number(), 'f', f.precision() );
202
}
203
- else if ( f.type() == QVariant::Double && f.precision() > 0 && f.precision() == 0 )
+ else if ( f.type() == QVariant::Double && f.precision() == 0 )
204
205
v = QString::number( qRound( value.number() ) );
206
0 commit comments