Group: comp.lang.fortran · Group Profile · Search for Case Mod in comp.lang.fortran
Author: nospam
Date: Jul 14, 2008 10:12
...> what is the difference between the MOD and the MODULO functions in ...to the book Fortran 90-95 Explained, mod(a,p) returns a-int(a/p..., just like, for example, a clock. MOD can also return values between 0 ...of a problem if you forget about that case and were counting on mod to give a ...happen). Modulo(-10,60) gives 50 Mod(-10,60) gives -10. -- Richard Maine ...
|