Does this sound good?
PHP Code:Function Modular(Num1, Num2)
Divided = Num1 / Num2
If Divided = Int(Divided) Then
Modular = 0
Else
FractionPart = Divided - Int(Divided)
Modular = FractionPart * Num2
End If
End Function
|
Results 1 to 4 of 4
Thread: Modular function
|
Click Here to Expand Forum to Full Width |