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?


-- 
Kristian

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

Hi

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.
n7.nabble.com/how-to-retrieve-a-number-with-more-dec-places-tp147257.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

Mime
View raw message