aspose file tools*
The moose likes Ranch Office and the fly likes Float Display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Float Display " Watch "Float Display " New topic
Author

Float Display

RB Pavan Kumar
Greenhorn

Joined: Aug 23, 2001
Posts: 2
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

Joined: Jan 30, 2000
Posts: 18671
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.

"I'm not back." - Bill Harding, Twister
 
Don't get me started about those stupid light bulbs.
 
subject: Float Display
 
Similar Threads
Decimal Precision
Implicit conversions...
max int in float???
double primitive in two forms
How to avoid exponential in STRING to DOUBLE conversion