12 lines
263 B
C#
12 lines
263 B
C#
namespace Bts.ArithmeticExpressions;
|
|
|
|
class RealConstant : IArithmeticExpression<double> {
|
|
readonly double value;
|
|
|
|
public RealConstant(double value) =>
|
|
this.value = value;
|
|
|
|
public double Evaluate(IDictionary<string, object?> env) =>
|
|
value;
|
|
}
|