Newbie Question: Floating point numbers
Newbie Question: Floating point numbers
- Subject: Newbie Question: Floating point numbers
- From: Gerald Hanks <email@hidden>
- Date: Tue, 04 Nov 2003 13:44:12 -0700
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?
-gerald
_______________________________________________
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.