tlang-interperter-cs/tlanglib/TNumber.cs

20 lines
351 B
C#

namespace tlang
{
public class TNumber : TObject
{
public double Value {get;set;}
public override bool AsBoolean => Value != 0;
public TNumber(double number)
{
Value = number;
}
public override string ToString()
{
return Value.ToString();
}
}
}