Solved

Format control in Java

Posted on 1997-10-23
1
198 Views
Last Modified: 2008-03-06
Do you know anything in Java which can do format control like those format indicator in C such as %d %f ...

Actually, the problem I met is that when writing some math function in Java, I don't want to output some double values in scientific format like 1.0034872E-5.  Instead, I want to represent them like 0.00010034872.  Do you have any idea about that?  Thank you in advance.
0
Comment
Question by:feng042497
1 Comment
 
LVL 6

Accepted Solution

by:
jpk041897 earned 50 total points
ID: 1229481
Take a look at the Acme class library (freeware) at:

http://www.acme.com/java/

Specificaly, take a look at:

http://www.acme.com/java/software/Acme.Fmt.html

which is a class that does exactly what you want.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to parse custom JSON to POJO java 4 72
JUnit 4 @Before and @BeforeClass differences 3 59
table example 4 29
Windows 10 IE Certificate Issue 10 45
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question