Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

when cf displays a value above 1,00

Status
Not open for further replies.

snivern

Programmer
Nov 30, 2003
9
US
when cf displays a value above 1,000 it puts a comma in the number, when I try to take the value of the field, it says that it can't be read as a number. Do I have to parse the number and take the comma out? This should be an easy one for you.
thanks
snivern
 
Are you using a number format or something. i've never noticed CF adding commas unless i tell it to.
cf by default does *not* put in commas

<cfset myNum = 500 + 501><cfoutput>#myNum#</cfoutput> <-- no comma in the output there

You're likely doing something somewhere that is putting
in the comma

Where's this number coming from?

What kind of database field is it coming from?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top