Bug report #10939

QgsExpression double format

Added by Matthias Kuhn over 10 years ago. Updated about 10 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Expressions
Affected QGIS version:2.4.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19295

Description

QgsExpression is not able to parse the scientific double format which it produces itself in .expression()

expr = '0.000001'
e1 = QgsExpression( expr )
e1.expression()
u'1e-06'
e2 = QgsExpression( e1.expression() )
e2.expression()
u'(no root)'

Related issues

Related to QGIS Application - Bug report #10936: setFilterExpression() does not works Closed 2014-07-23

Associated revisions

Revision d833c22b
Added by Jürgen Fischer about 10 years ago

fix interpretation of numeric constants in scientic notation (fixes #10939)

History

#1 Updated by Matthias Kuhn over 10 years ago

  • Category set to Expressions

#2 Updated by Jürgen Fischer about 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF