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