diff --git a/wolvm/expressions/ParseDoubleExpression.cs b/wolvm/expressions/ParseDoubleExpression.cs index 3587c08..f852ebf 100644 --- a/wolvm/expressions/ParseDoubleExpression.cs +++ b/wolvm/expressions/ParseDoubleExpression.cs @@ -8,7 +8,9 @@ public class ParseDoubleExpression : VMExpression { public Value ParseExpression(params Value[] args) { - return new Value(new wolString(((wolDouble)args[0].type).value.ToString())); + wolDouble type = new wolDouble(); + type.ParseDouble(((wolString)args[0].type).value); + return new Value(type); } } }