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 a Number
Formatting number
Discover number format
combine number formats
Converting a "Stringed" Number to a Number
Converting a "Stringed" Number to a Number
Convert Serial Number to a Date Function
Summing on varying number of rows in Excel using VBA
Number crunching
find the number of working days (monday to firday) between two give
Problem with random number in java
How to control number of textboxes according to user input
Count unique names in listbox & put the number on the userform
Detecting text vs numbers with an If/Then
VBA to use unique password using volume serial number
Count the number of rows on a worksheet, divide the count by 15
generating random numbers
Fibonacci and Prime numbers
convert from number (0-255) to character
Math function to determine if a number is an int
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