> <cfqueryparam value = "#arguments.dollar_value#" cfsqltype =
> "cf_sql_varchar">,
>
> if i enter value 100,000 the result is 100.00
> but if i enter 100000 OR 100000.00 it is fine?
>
> what gives and how do i prevent it?

This is because commas can mean two things. Here in the US, for
example, if I wanted to write one thousand dollars and fifty cents,
I'd have this:

$1,000.50

In Europe, on the other hand, the commas and periods would be switched:

$1.000,50

So, just remove the commas first assuming you're using US formatting.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332443
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to