This commit is contained in:
parent
a49a0f567a
commit
3cf7cbcc7c
@ -62,6 +62,12 @@ abstract class TerminalExpression : IExpression
|
|||||||
|
|
||||||
private static object? ParseValue(string value)
|
private static object? ParseValue(string value)
|
||||||
{
|
{
|
||||||
|
if (double.TryParse(value, out _))
|
||||||
|
{
|
||||||
|
return double.Parse(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ToDo: избавиться
|
||||||
var doubleValue= value.Replace('.', ',');
|
var doubleValue= value.Replace('.', ',');
|
||||||
if (double.TryParse(doubleValue, out _))
|
if (double.TryParse(doubleValue, out _))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user