Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

printing doubles with full precision

 
Scott Huddleston
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic