Skip to content

CM-247 Support for scientific notation in rules

Brice Copy requested to merge bugfix/cm-247 into master

The rule engine does not support the usage of exponential scientific notation in rule syntax.

For instance a rule like :

6E-1 > 9E-2 (in decimal : 0.6 > 0.09 ) –> This should result to TRUE

is stripped of character E (not considered part of a number) and results to :

6 - 1 > 9- 2 which is evaluated to 5 > 7 --> This evaluates to FALSE

c.f. https://its.cern.ch/jira/browse/CM-247

Edited by Brice Copy

Merge request reports