Float precision help
vzafzalJan 10 2008 — edited Feb 1 2008Hi, 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?