How to set the decimal point to 0

heres the problemi have a double variable which is equal to 0when i do calculation like :variable=0*0;then the result will be 0.0 when printedhow to fix this?
[207 byte] By [w32sysfiea] at [2007-11-27 3:06:02]
# 1
You can use different formats. java.text.DecimalFormat
BIJ001a at 2007-7-12 3:52:05 > top of Java-index,Java Essentials,New To Java...
# 2
How to use?can u show a bit code of that? thankss
w32sysfiea at 2007-7-12 3:52:05 > top of Java-index,Java Essentials,New To Java...
# 3

Tech tip article on formatting decimal numbers:

http://java.sun.com/developer/TechTips/2000/tt0411.html#tip1

JavaDoc on the java.text.DecimalFormat class:

http://java.sun.com/javase/6/docs/api/java/text/DecimalFormat.html

Java Tutorial on number formatting:

http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html

hungyee98a at 2007-7-12 3:52:05 > top of Java-index,Java Essentials,New To Java...