private static decimal Apply(SysFun2 func, decimal value1, decimal value2) => Convert.ToDecimal(func(Convert.ToDouble(value1), Convert.ToDouble(value2)));
// Helper functions to apply functions of double arguments to the decimal parameters private static decimal Apply(SysFun func, decimal value) => Convert.ToDecimal(func(Convert.ToDouble(value)));