<CFSET varname = #Round(getdealers.recordcount/100)#>

or

<CFSET varname = #Round(Evaluate(getdealers.recordcount/100))#>

should work fine.

-----Original Message-----
From: Rick Lamb [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 9: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