11-27-2022, 09:02 PM
Code: (Select All)
$Console:Only
_Dest _Console
Option _Explicit
Declare Library
Function fmod# (ByVal x As Double, Byval y As Double)
End Declare
Print fmod(-1#, 5#)
Print fmod(-1.4#, 5#)
Print fmod(1.4#, 5#)
Print fmod(-7.0#, 5#)
Print fmod(-7.1#, 5#)
result
Code: (Select All)
-1
-1.4
1.4
-2
-2.1