Thanks...I must have not had enough caffeine yet.

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


> On 12/27/00, Jon Hall penned:
> >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.
>
> Two ways you could write a cfif:
> <CFIF 40 mod 4 is 0>No Remainder<cfelse>Yes Remainder</CFIF>
> or
> <CFIF 40 mod 7>Yes Remainder<cfelse>No Remainder</CFIF>
>
> And then there's this:
> <CFOUTPUT>#evaluate(40 mod 4)#</CFOUTPUT>
>
> which will return 0.
> --
>
> Bud Schneehagen - Tropical Web Creations
>
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> ColdFusion Solutions / eCommerce Development
> [EMAIL PROTECTED]
> http://www.twcreations.com/
> 954.721.3452
>
>
~~~~~~~~~~~~~ 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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to