Try stripping out the comma with the replace function before calling the
tag. Pass the cleaned number to the tag.
Russel
============================================================
Russel Madere, Jr. Senior Web Developer
ICQ: 5446158 http://www.TurboSquid.com
Some days you eat the bear; some days the bear eats you.
============================================================
> -----Original Message-----
> From: Robert Long [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 07, 2001 14:32
> To: CF-Talk
> Subject: RE: Custom Tag
>
>
> causes the following error if you use a comma in amount...
> An error occurred while evaluating the expression:
>
>
> monthlypayment = round((ammount * rate / (1 - (1 / (1 + rate) ^
> payments)))
> * 100)
>
>
>
> Error near line 37, column 7.
> ------------------------------------------------------------------
> ----------
> ----
>
> Cannot convert 130,000 to number.
>
> Please, check the ColdFusion manual for the allowed conversions
> between data
> types
>
>
> The error occurred while processing an element with a general
> identifier of
> (CFSET), occupying document position (37:1) to (37:90).
>
>
> Date/Time: 02/07/01 15:36:38
> Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
> Remote Address: 206.155.0.2
> HTTP Referer:
> http://www.fusemonkey.com/cf_mortgage_calculator/example1.cfm
>
>
>
> -----Original Message-----
> From: Kevin Schmidt [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 07, 2001 2:06 PM
> To: CF-Talk
> Subject: OT: Custom Tag
>
>
> Hi everyone,
>
> I just finished up an article for the April issue of CFDJ on Custom Tags.
> The custom tag is for calculating a mortgage payment based on user input.
> This is version 1.0 so any feedback from you guys for version 2.0 would be
> great.
>
> Download it at: http://www.fusemonkey.com/cf_mortgage_calculator/index.cfm
>
> Thanks,
>
> Kevin
>
> Kevin Schmidt, Web Technology Manager
> Allaire Certified ColdFusion Developer
> pwb inc.
> integrated marketing communications
> 350 S. Main St., Suite 350
> Ann Arbor, MI 48104
> 734.995.5000 (tel)
> 734.995.5002 (fax)
> www.pwb.com
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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