php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem Handling Long Data types in GUI
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#2
You can use DecimalFormat to format the out put of numbers

package testproject;

import java.text.DecimalFormat;

public class Main {

public static void main(String[] args) {
double numberToRound = 12345.6789;

DecimalFormat df = new DecimalFormat("0");
System.out.println("Rounded number = " + df.format(numberToRound));
}
}

The output will be as
Rounded number = 12345

Let me know if you are unable to solve the problem with this.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Messages In This Thread
Problem Handling Long Data types in GUI - by Vuhelper - 04-27-2011, 06:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How find the data in ArrayList? 2011-12 Vuhelper 0 2,546 09-04-2011, 07:21 AM
Last Post: Vuhelper
  Exception Handling in Java 2011 Vuhelper 0 2,026 07-23-2011, 05:46 PM
Last Post: Vuhelper
  Error 1721: There is a problem with this Windows Installer Package Xpert 0 1,465 06-24-2011, 07:48 AM
Last Post: Xpert
  JAVA Error 1723. There is a problem with this Windows installer package Xpert 0 1,429 06-24-2011, 07:40 AM
Last Post: Xpert
  10 types or errors in java netbeans for beginners Xpert 0 1,754 06-23-2011, 11:35 PM
Last Post: Xpert
  java 3D problem 2011 Vuhelper 0 997 06-09-2011, 09:57 PM
Last Post: Vuhelper
  Data Submit Problems in Web Forms saneha 2 2,029 04-27-2011, 08:57 PM
Last Post: Xpert
  Retrieving data in a JTable saneha 1 4,860 04-27-2011, 06:35 AM
Last Post: Vuhelper
  Event Handling in java saneha 1 2,312 04-24-2011, 09:36 PM
Last Post: Vuhelper
  java problem in function saneha 1 2,331 04-24-2011, 09:31 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support