File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes printing doubles with full precision Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "printing doubles with full precision" Watch "printing doubles with full precision" New topic
Author

printing doubles with full precision

Scott Huddleston
Greenhorn

Joined: Jun 28, 2001
Posts: 12
I'm extracting doubles (from an Oracle 8i v.8.16 DB) using getDouble(i). I know that the value in the database has about 25 sigificant digits to the right of the decimal point. The problem is that I can't seem to print all the significant digits. Is there any way to print doubles with full precision? I've tried using NumberFormat and setting the max fractional digits to higher numbers, but it seems the maximum is 14 digits to the right of the decimal point and then it rounds automatically in the 15th position.
Thanks for any help.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: printing doubles with full precision
 
Similar Threads
converting float hex to int
Java 1.5 String.format
Widening Conversion
Working with floating point numbers in for loops and arrays
Dividing a double value produces different results