This works:

<cfif (40 mod 4) is 0>
  divisible!
<cfelse>
  not divisible!
</cfif>

HTH,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - the World's most configurable mail server

----- Original Message -----
From: "Jon Hall" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 27, 2000 2:27 PM
Subject: MOD math function?


> Maybe I should have paid attention in math, but here is my problem.
>
> I have 2 numbers, for example 40 and 4. All I need to do is find out if
(40
> / 4) has a remainder.
>
> For some reason, (40 MOD 4) does not seem to be working.
>
> jon
>
>
>
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server!  Instant Activation for $99/month w/Free Setup 
from SoloServer  PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support  Visit 
SoloServer, https://secure.irides.com/clientsetup.cfm.

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to