tlang-runtime-compiler/TLang.VM/TNumber.cs

18 lines
395 B
C#

namespace TLang.VM
{
public class TNumber : TObject
{
public override string Type => "number";
public override bool True => Value != 0;
public double Value {get;set;}
public TNumber(double value)
{
this.Value = value;
}
public override string ToString()
{
return Value.ToString();
}
}
}