Ok. I'm a dumb @#$!. I just needed to point my slash the right way, /, not
\. HeHe! So when you guys get this in 2 hours or so, excuse my thickness.

Rick

-----Original Message-----
From: Rick Lamb [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 11:02 AM
To: CF-Talk
Subject: division


This was suppose to be easy...

I'm trying to divide a recordcount by 100 and then round up. Currently my
recordcount is 162 and i'm using the ceiling function to round up but it
keeps giving me 1. I've tried using number format and decimal format with no
luck. Any suggestions? Code below:

<cfset temp = decimalFormat(getdealers.recordcount\100)>
<cfset variables.totalpages = ceiling(temp)>

Thanks,

Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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

Reply via email to