我自己定义一个函数,但是老是“溢出”,怎么回事,请高手指点!内容是这样的,
Private Function F2(ByVal h As Long)
F2 = 3 * Q ^ 2 * (b + 2 * m * h) ^ 2 / (b * h + m * h ^ 2) - 2 * m * Q ^ 2 / 9.8 / (b * h + m * h ^ 2) ^ 3
End Function
Private Function F2(ByVal h As Long) as long
F2 = 3 * Q ^ 2 * (b + 2 * m * h) ^ 2 / (b * h + m * h ^ 2) - 2 * m * Q ^ 2 / 9.8 / (b * h + m * h ^ 2) ^ 3
End Function