This is standard practice - try entering it as a CF_SQL_FLOAT or
something.....or alter the datatypes length and precision.



-----Original Message-----
From: Daniel Kessler [mailto:[EMAIL PROTECTED] 
Sent: 28 July 2005 15:12
To: CF-Talk
Subject: Entering a number becomes truncated

howdy folks - hope your week is going fine.

I have an Oracle database table with a column defined as such:
gs_price NUMBER,

and I enter it using:
....
SET
gs_price = <cfqueryparam value="#Form.gs_price#"
cfsqltype="CF_SQL_NUMERIC">,
....

Unfortunately, when I enter 2.50, it truncates the number to 2.5. 
It's a price so I need to keep it 2.50.  I suppose that I could just 
format it correctly after I get it but I was hoping to have it 
correct in the DB.

any thoughts?

-- 

Daniel Kessler

Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
301-405-2545 Phone
www.phi.umd.edu



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213089
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to