Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Float precision help

vzafzalJan 10 2008 — edited Feb 1 2008
Hi, I'm trying to insert a float into the database.

If I insert integer numbers it works fine, but if I insert a number like 2.2 it's changed to 2.200000047683716.

I've tried inserting 2.2 via SQL developer and it works fine, so is toplink re-parsing the value?
I've tried changing the scale and precision properties in the entity bean for that particular property but it seems to have no effect.

Anyone know what might be causing this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 29 2008
Added on Jan 10 2008
8 comments
1,234 views