Parsing Scientific Notation in dynamic-expresso

57 Views Asked by At

Just wondering why parsing of scientific notation was not implemented. I was able to add it with a few simple functions using RegularExpressions. The code scrubs the expression string to replace scientific expression values with double strings prior to evaluation. Ex) "SomeVar<=5.5e-3" becomes: "SomeVar<=0.0055" "SomeOtherVar>=-9.9E4" becomes: "SomeOtherVar>=-99000"

I will add it if anyone is interested.

0

There are 0 best solutions below