Search: | |||||

| ||||

Home » Forum » Java | RSS Feeds |

I am just wondering is there any way

to do formating on the number in Java like in pascal

and c. for example, i would like to displace only 2

decimal places or xxxxx.xx. when in pascal u put :5:2 or

something like that or 0.2 for c.

The "java.text" package has all KINDS of

formatting classes.<br><br>Check out java.text.DecimalFormat

class. If you download the javadocs for the SDK from the

sun web site, you can check out all the

API's.<br><br><br>Stephen McConnell<br>http://www.crosslogic.com

Didn't find what you were looking for?
Find more on Formating the Number
Or get search suggestion and latest updates.

Related Topics:

- Converting a "Stringed" Number to a Number
- Converting a "Stringed" Number to a Number
- triangle of numbers,:-( i owe you one
- C program that takes Salesperson details such as Payroll number, Surname, Other Names, Basic Sa
- perfect number
- how to sum the even numbers only
- Addition of two numbers
- how to generate a rondom number btween two ranges
- Is it possible to have limited number of rows and columns in a sheet
- Max number of sheets in workbook?
- perfect number
- Read integer number
- Display character which appears number of time equal half of maximum time
- sum of series of natural numbers
- prime number
- Datagrid Display - right align numbers
- Getting the time for the Number of records retrived
- Math function to determine if a number is an int
- Number fields in Excel being considered NULL (empty)
- Jbuilder Serial number
- changing the port number on JBOSS
- get the number of JList which is created by array
- How to access the Phone Number from the J2ME Application
- Error preallocating sequence numbers. The sequence table information
- Get Column by number