JAVA-INDEX.COM
Java programming resources: FAQs, tutorials, compiler and browser download sites, documentation, books lists, IDEs, etc.
Home....
|
log in....
|
Pub my question!
|
Sign-up....
Java-index
>>
Java Essentials
>>
New To Java
format number of digit for a double value
Hello allHow I can format a double value so that there are only 2 values after the dot.For example 2.332332 -> 2.333.1 -> 3.10Thank you for your helpshuhu
[209 byte] By [
suhua
] at [2007-11-27 8:12:39]
««
The inode error message trigger the system reboot. Pls help
»»
.getAudioClip(...
# 1
DecimalFormat
floundera
at 2007-7-12 19:57:03 >
# 2
I think printf (such as provided by java.io.PrintWriter) can do that as well.
paulcwa
at 2007-7-12 19:57:03 >
# 3
Yeah, I keep forgetting about printf but if you are stuck with < 1.5 you have to go with DecimalFormat.
floundera
at 2007-7-12 19:57:03 >
# 4
Thanks all for your help
suhua
at 2007-7-12 19:57:03 >
Java Essentials
simple gui program
cannot be applied to (double,java.lang.String)
abour a regex pattern
another "cannot find symbol" error :(
Thread-Killing.
ActionListener not responding (JRadioButton)
Help in jsp
how well does flash scale
Help in betterment of Google CSE for Java
How to list files from .jar file in applet?
New To Java
Minimizing to tray wiht Java SE 6?
Getting full file path for Jfilechooser
Best way to communicate between Jave Windows Service and GUI?
delete a message from a queue
How did you learn Java?
who here codes with music on?
Casting of an arrays (float to int)
Having trouble installing j2re-1_4_06-windows-i586
Multiplication Table
Collection swap
Java Essentials New Topic
cannot be applied to (double,java.lang.String)
Minimizing to tray wiht Java SE 6?
abour a regex pattern
Thread-Killing.
ActionListener not responding (JRadioButton)
Help in jsp
Getting full file path for Jfilechooser
how well does flash scale
Java Essentials Hot Topic
How did you learn Java?
Help in betterment of Google CSE for Java
who here codes with music on?
Casting of an arrays (float to int)
Collection swap
Referring to a method when where are two
"sendError" method as compared to "setStatus"; weired results; Help !
I don't understand " MANIFEST.MF "
Java Essentials
Java Programming
New To Java
Training
All Classified
Archived Forums
Enterprise & Remote Computing
Java Essentials
Desktop
Core
Solaris Operating System
Security
Database Connectivity
Java Mobility Forums
Web & Directory Servers
Development Tools
Application & Integration Servers
Java HotSpot Virtual Machine
Other Topics
E-Mail, Calendar, & Collaboration
Developer Tools
General
Administration Tools
Sun Hardware
Storage Forums
Java Enterprise System
StarOffice
Open Source Technologies
BigAdmin
Real-Time
Java Coding