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:

- Formating 2nd HD
- 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
- Linux number
- Numbers lock on 7.10
- PIM that can dial the listed phone number
- sum of series of natural numbers
- prime number
- USB port numbers
- 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