<CFSET NumberIwant = Replace(Form.Number, "$", "ALL")>



----- Original Message -----
From: Mike Kear <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Sunday, January 21, 2001 6:31 PM
Subject: How to Convert currency to numeric value


> I'm doing a calculator that involves users entering their annual income
into
> an input field.  So the gross income needs to be a numeric value.
>
> But if the user types in $36000, then the val(grossincome) function
returns
> zero, because the first character isn't numeric.
>
> What's the easiest way to get the number out of an answer like that?
>
> Cheers,
> Mike Kear
> Windsor, NSW, Australia
> AFP WebWorks
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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