View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006346 | JEDI Code Library | JclExprEval | public | 2014-10-30 12:00 | 2024-01-02 21:15 |
Reporter | Mistral | Assigned To | |||
Priority | normal | Severity | block | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | Version 2.5 (Subversion repository/Daily zips) | ||||
Target Version | Fixed in Version | ||||
Summary | 0006346: TEvaluator doesn't work anymore with floating point values with Italian decimal separator | ||||
Description | With previous version, till last JCL commit (30th septembar) ,all works fine. I'm working on an italian machine so my default DecimalSeparator is "," and not ".". I'm not able to evaluate expression because I don't know how to pass decimal separator in strings: if I use Evaluator.Evaluate('123,45*9') I get: "Parse error: Unknown symbol: 123" if I use Evaluator.Evaluate('123.45*9') I get: "123.45 in not a valid floating point value" The workaround to make it work is this: ... OldSep:=FormatSettings.DecimalSeparator; try FormatSettings.DecimalSeparator:='.'; VCalc:=Evaluator.Evaluate('123.45*9'); finally FormatSettings.DecimalSeparator:=OldSep; end; | ||||
Tags | No tags attached. | ||||
Fixed in GIT commit | |||||
Fixed in SVN revision | |||||
IDE version | All | ||||