We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Author Name: Fabio Cosimelli (Fabio Cosimelli) Original Redmine Issue: 12947 Affected QGIS version: 2.8.2
If precision is 0 the number 12000 becomes "12", probably the solution is:
inline QString qgsDoubleToString( const double &a, const int &precision = 17 ) { if(precision) return QString::number( a, 'f', precision ).remove( QRegExp( "\\.?0+$" ) ); else return QString::number( a, 'f', precision ); }
The text was updated successfully, but these errors were encountered:
Author Name: Giovanni Manghi (@gioman)
better submit a patch as a pull request on github?
Sorry, something went wrong.
Author Name: Matthias Kuhn (@m-kuhn)
Fixed in changeset "ac38b213802919d652b062e65bd96c37c9e199ab".
No branches or pull requests
Author Name: Fabio Cosimelli (Fabio Cosimelli)
Original Redmine Issue: 12947
Affected QGIS version: 2.8.2
If precision is 0 the number 12000 becomes "12", probably the solution is:
inline QString qgsDoubleToString( const double &a, const int &precision = 17 )
{
if(precision)
return QString::number( a, 'f', precision ).remove( QRegExp( "\\.?0+$" ) );
else
return QString::number( a, 'f', precision );
}
The text was updated successfully, but these errors were encountered: