Re: Newbie Question: Floating point numbers
Re: Newbie Question: Floating point numbers
- Subject: Re: Newbie Question: Floating point numbers
- From: Kaj Hejer <email@hidden>
- Date: Tue, 4 Nov 2003 22:44:03 +0100
At 13:44 -0700 04-11-03, Gerald Hanks wrote:
I am having a difficulty right now with a project that uses floating
point numbers. The project uses a mysql database that has a table
that stores values in type float. When webobejcts reads these
numbers out of the database into a java.lang.Number then the numbers
get screwed up. Example 8.5 in the database becomes 8.501462745 in
webobjects. When wo tries to then update rows in the database to
rows now longer match and I get an error that says "failed to update
row in database" Could someone point me in the right direction to
solve this one?
Hi!
The valueType column in EOModeler tells the JDBC adaptor how to read
the data from the database. Maybe the valueType is not set correctly
in your eomodel.
see
<url:http://developer.apple.com/documentation/WebObjects/UsingEOModeler/4WorkingWithAttributes/chapter_4_section_3.html#//apple_ref/doc/uid/DontLinkBookID_490-DontLinkChapterID_7-BABFGECE>
for more info about valueType.
-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.