|
|
 |
| found 13 articles for 0.007 sec |
  |
Group: comp.lang.fortran · Group Profile · Search for difference between mod and modulo in comp.lang.fortran
Author: James Van Buskirk
Date: Jul 14, 2008 12:17
...... I think I found it... mod seems to respect the sign, whereas modulo does not. That is, mod(-5.0, 2.0) = -1.0 modulo(-5.0, 2.0) = 1.0 The...that the sign of the result of mod(a,p) follows the sign of a...whereas the sign of the result of modulo(a,p) follows the sign of p... mod(-30,-100) = -30 mod(-100,-100) = 0 modulo(0,100) = 0 modulo(...
|
| Show full article (2.37Kb) · Show article thread |
|
 |
|
1 ·
2 ·
next |
|
|