MOD function does not work! So be warned!

Rob Cozens rcozens at pon.net
Thu Apr 4 09:54:01 EST 2002


>The someone else was me, and since another writer made a similar 
>point about my comment I should clarify that I did not make it in 
>relation to Rev (and hence the documentation makes no such 
>statement) but to the MOD function as it was initially implemented 
>(so far as I know) in the languages of 25+ or even 35+ years ago. I 
>was talking about distant antecedents rather than current usage.

David, et al:

FWIW, I just looked through my old programming manuals and found all 
three versions of Pascal (UCSD, Turbo, & Think) define mod as an 
integer operation.  The Turbo Pascal manual specifically identities 
real arguments to mod as an error.

-- 

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)



More information about the use-livecode mailing list