Query about mod operator

Colin Holgate coiin at rcn.com
Mon Apr 21 10:39:33 EDT 2008


On Apr 21, 2008, at 10:11 AM, Paul Williams wrote:

> why does 8 mod 0.05  return 0.05 ?

Mod is normally an integer operation, and as you wouldn't want to risk  
a divide by zero issue, perhaps it divides by at least 1? That would  
give a remainder that was equal to the fraction.





More information about the use-livecode mailing list