Rick,

The division operator in your first line of code is the wrong slash.  I'm
not sure why, but CF apparently turns that whole thing into "1".  Strange.
I reproduced the same problem on my end.  Flipping that slash fixes it.

Matthieu

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 13, 2000 12:02 PM
> 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