From 7c54bcd1e686d285f5e72924db04a2b6a1e8ce2d Mon Sep 17 00:00:00 2001 From: wagesj45 Date: Wed, 20 Aug 2025 05:53:55 -0500 Subject: [PATCH] fix(stdlib): correct max() to use Math.Max --- src/stdlib/functions/Max.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/functions/Max.cs b/src/stdlib/functions/Max.cs index 9c60d85..be1ddaf 100644 --- a/src/stdlib/functions/Max.cs +++ b/src/stdlib/functions/Max.cs @@ -36,7 +36,7 @@ namespace stdlib.functions decimal second = Convert.ToDecimal(inputSecond.Value); - return new FunctionValue(FunctionValueType.Numeric, Math.Min(first, second)); + return new FunctionValue(FunctionValueType.Numeric, Math.Max(first, second)); }); } }