tlang-interperter-cs/TNumber.cs

20 lines
351 B
C#
Raw Normal View History

2023-03-09 19:40:14 +00:00
namespace tlang
{
public class TNumber : TObject
{
public double Value {get;set;}
2023-03-09 23:57:16 +00:00
public override bool AsBoolean => Value != 0;
2023-03-09 19:40:14 +00:00
public TNumber(double number)
{
Value = number;
}
public override string ToString()
{
return Value.ToString();
}
}
}