Excel で呼び出すTest1
と、任意の実数A
およびに対して 0 が返されますB
。なぜこれが起こるのですか?
Public Function Min(X As Double, y As Double, Optional y2 As Double, Optional y3 As Double) As Double
Min = Application.WorksheetFunction.Min(X, y, y2, y3)
End Function
Function Test1(A As Double, B As Double)
Test1 = Min(A, B)
End Function
エクセルの場合: =Test1(5,2)
.