• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Float Display

 
RB Pavan Kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is a float variable always printed in exponential format ?If not is there a way to print it not in an exponential format . For example if a variable x is having a value of 1234567890000. when we print it suing system.out.println it prints as
1.23456789 E 12 is there a way to print it as 1234567890000.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This forum is intended for questions and comments about this web site, www.javaranch.com. It is not for questions about the Java language - that's what all our other forums are for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic