db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sarah.kho" <sarah....@gmail.com>
Subject Re: Values in double fields are not stored as I specified.
Date Sat, 29 Aug 2009 11:23:40 GMT

Thank you all for your replies.
Tables are generated by JPA and I am using Toplink essentials.

If I stick with JPA I will have no problem as the property type is float and
it takes care of conversion.

But If I switch to JDBC I will need to perform manual conversion. Also I
will need to perform some formatting in reporting system.


Sylvain Leroux wrote:
> Bien vu, Mark!
>> In this particular case the original double value is also being cast
>> to 'float' at some point and thus losing about 7 extra digits of
>> accuracy.
>> Mark Thornton
> Was the table be created by JPA? What's the type of the corresponding
> column?
> -- 
> Website: http://www.chicoree.fr

View this message in context: http://www.nabble.com/Values-in-double-fields-are-not-stored-as-I-specified.-tp25187579p25202082.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message