Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Java Answers
Ask Question
UnAnswered
Home
»
Forum
»
Java
RSS Feeds
Question Asked By:
Thelma Murray
on
Oct 04
In
Java
Category.
Number Format
Question Answered By:
Joyce Edwards
on
Oct 04
You can also use:
double d = 12.345;
DecimalFormat df = new DecimalFormat("0.#");
df.format(d);
Share:
This Question has 2 more answer(s).
View Complete Question Thread
Didn't find what you were looking for? Find more on
Number Format
Or get
search suggestion and latest updates
.
Related Topics:
Formatting number
Formatting a Number
combine number formats
Discover number format
Converting a "Stringed" Number to a Number
Converting a "Stringed" Number to a Number
Math function to determine if a number is an int
How to access the Phone Number from the J2ME Application
get the number of JList which is created by array
changing the port number on JBOSS
Jbuilder Serial number
Number fields in Excel being considered NULL (empty)
Getting the time for the Number of records retrived
Datagrid Display - right align numbers
Error preallocating sequence numbers. The sequence table information
Fibonacci and Prime numbers
generating random numbers
Pocket PC 2002 PDA to dail a phone number
julian day number
Formating the Number
Tagged:
number
format
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint