This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Float Display " Watch "Float Display " New topic

Float Display

RB Pavan Kumar

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

Joined: Jan 30, 2000
Posts: 18671
This forum is intended for questions and comments about this web site, 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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Float Display
It's not a secret anymore!