get rid of the commas... it thinks its a string when it has commas in... 
replace(meter,",","","all")

-----Original Message-----
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 21 February 2001 09:47
To: CF-Community
Subject: rounding large decimal figures


Greetings all.

has anyone come accross problems when outputting rounded int values from sql
data entries.

On my my development machine runs like a baby, using enterprise server 4.5.1

but on the web server also 4.5.1 I get this error,

An error occurred while evaluating the expression: 
#round(meter)#
Error near line 362, column 150. 

Parameter 1 of function Round which is now "1,025.00" must be a stk_real
number 
The error occurred while processing an element with a general identifier of
(#round(meter)#), occupying document position (362:149) to (362:162) in the
template file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to