> sorry to post the same message again but its Friday afternoon and my brain
> is tired.
>
> I've got a value 16,511.00 which although it looks like an int, CF
believes
> its a string. So I can't use NumberFormat.
>
> I need to turn 16,511.00 into the integer 16511.
>
> How?

Try this:

<cfset num= "16,511.00" >
<!--- remove anything not a number or decimal point --->
<cfset num = REReplace(num, "[^0-9.]", "", "ALL" )>
#round(num)#


>
> Also can anyone recommend a good resource for learning about regular
> expressions?

There is an oreilly book Mastering Regular Expressions which has
everything++
One gotcha is that CF is a little different in its syntax for  somethings .

Hope that helps ..

~JustinMacCarthy

Coming soon WWW.CFFAQ.ORG


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to