public static ScalarValue Min(ScalarValue val1, ScalarValue val2) { return Create(Math.Min(val1.GetDoubleValue(), val2.GetDoubleValue())); }