difference between mod and modulo
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 13 articles for 0.007 sec
Re: difference between mod and modulo     

Group: comp.lang.fortran · Group Profile · Search for difference between mod and modulo in comp.lang.fortran
Author: Ron Ford
Date: Jul 14, 2008 16:45

... is the difference between the MOD and the MODULO functions in ...-int(a/p)*p and modulo(a,p) returns a-floor(...magnitude of the denominator. For MOD the sign of the result...mathematical usage for modular arithmetic. MODULO gives you the non-negative...modulus. On the other hand, MOD gives you the remainder function...shame that there's this difference. It would have been simpler...
Show full article (1.85Kb) · Show article thread
Re: difference between mod and modulo     

Group: comp.lang.fortran · Group Profile · Search for difference between mod and modulo in comp.lang.fortran
Author: James Giles
Date: Jul 14, 2008 13:01

... is the difference between the MOD and the MODULO functions in ... book Fortran 90-95 Explained, mod(a,p) returns a-int(... positive modulus, the definition of MODULO is the same as the...mathematical usage for modular arithmetic. MODULO gives you the non-negative...modulus. On the other hand, MOD gives you the remainder function...shame that there's this difference. It would have been simpler...
Show full article (1.87Kb) · Show article thread
Re: difference between mod and modulo     

Group: comp.lang.fortran · Group Profile · Search for difference between mod and modulo in comp.lang.fortran
Author: nospam
Date: Jul 14, 2008 10:12

... is the difference between the MOD and the MODULO functions in ... book Fortran 90-95 Explained, mod(a,p) returns a-int(a/p)*p and modulo(a,p) returns a-floor...don't see what the difference is. In my tests, both...That's where the difference is. MODULO is the mathematical function...to give a result between 0 and p (I've seen...10,60) gives 50 Mod(-10,60) gives -10. -- Richard Maine...
Show full article (1.19Kb) · Show article thread
Re: difference between mod and modulo     

Group: comp.lang.fortran · Group Profile · Search for difference between mod and modulo in comp.lang.fortran
Author: Michael Goerz
Date: Jul 14, 2008 10:11

... what is the difference between the MOD and the MODULO functions in ... the book Fortran 90-95 Explained, mod(a,p) returns a-int(a/p)*p and modulo(a,p) returns a-floor(a/... I don't see what the difference is. In my tests, both functions ... Michael 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...
Show full article (0.68Kb) · Show article thread
difference between mod and modulo     

Group: comp.lang.fortran · Group Profile · Search for difference between mod and modulo in comp.lang.fortran
Author: Michael Goerz
Date: Jul 14, 2008 09:51

Hi, what is the difference between the MOD and the MODULO functions in Fortran 90? According to the book Fortran 90-95 Explained, mod(a,p) returns a-int(a/p)*p and modulo(a,p) returns a-floor(a/p)*p if a and ...is "ordinary mathematical division". I don't see what the difference is. In my tests, both functions always return the same value...
Show full article (0.46Kb)
Re: difference between mod and modulo     

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
Re: how do i create a permutative variable     

Group: comp.lang.fortran · Group Profile · Search for difference between mod and modulo in comp.lang.fortran
Author: Jugoslav Dujic
Date: Oct 25, 2007 00:59

..." when applied to permute-type variables...am i | right? Yes, correct. Sloppy wording of mine. || You mean, modulO (modulE is something else)? The difference between || MOD and MODULO comes into play when either argument is positive (see the || docs). For positive values, they're the same. | | got ...
Show full article (1.02Kb) · Show article thread
Re: how do i create a permutative variable     

Group: comp.lang.fortran · Group Profile · Search for difference between mod and modulo in comp.lang.fortran
Author: Pietro
Date: Oct 24, 2007 10:25

... integer, intent(in):: i1, i2 myplus=mod(i1+i2, N) end function myplus ...> would peform the same as i = mod(k+m, N) i will opt for ...> | 4) why did you use mod and not module? You mean, modulO (modulE is something else)? The difference between MOD and MODULO comes into play when either ..., you either have to define a different .plus. for the each class defined by ...
Show full article (1.35Kb) · Show article thread
Re: how do i create a permutative variable     

Group: comp.lang.fortran · Group Profile · Search for difference between mod and modulo in comp.lang.fortran
Author: Jugoslav Dujic
Date: Oct 24, 2007 05:38

..., intent(in):: i1, i2 myplus=mod(i1+i2, N) end function myplus ...would peform the same as i = mod(k+m, N) with sufficient optimization... and not module? You mean, modulO (modulE is something else)? The difference between MOD and MODULO comes into play ... either have to define a different .plus. for the each class ... by N, or resort to mod. -- Jugoslav ___________ www.xeffort.com ...
Show full article (2.47Kb) · Show article thread
Re: ====== Alt.Seduction.Fast FAQ And Information ======     

Group: alt.seduction.fast · Group Profile · Search for difference between mod and modulo in alt.seduction.fast
Author: speeding
Date: Dec 8, 2006 13:39

... also section 2.13.4.) The 'mod' operator ------------------ Throughout this document the operator ... will be used to signify the modulo or remainder operator. For example, 17 mod 7=3 ... not actually true. Currently the time between two vernal equinoxes is slightly greater ...calendar and the Gregorian calendar. The difference between them lies in the way...
Show full article (17.47Kb) · Show article thread
1 · 2 · next