7,732
社区成员




Function Calculate(ByVal lngNumber As Long, _
ByVal dblSignature As Double) As Long
Dim a As Long
Dim b As Double
Dim Total As Double
a = Int(dblSignature)
b = dblSignature - a
For i = 1 To a
……
Next i
Select Case b
Case 0.25
……
Case 0.3
……
Case 0.5
……
Case 0.8
……
Case 0.75
……
End Select
Calculate = Total
End Function