db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Waagan <krist...@apache.org>
Subject Re: how to retrieve a number with more dec places
Date Tue, 28 Feb 2017 07:22:49 GMT
Hi Bob,

Assuming you have stored it correctly, have you tried using getBigDecimal?


Den tir. 28. feb. 2017, 07:03 skrev Bob M <rgmatthews@orcon.net.nz>:


I have a derby database with records that contain a price e.g. 1.21098

I retrieve it by the following line

price = rs.getDouble("price");

when I print it out I get :- 1.21

What do I need to change so that I retrieve the full price with all its
decimal places?

Bob M

View this message in context: http://apache-database.10148.
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message