Meaningless Drivel is fun!
The moose likes Swing / AWT / SWT and the fly likes Number Format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Number Format" Watch "Number Format" New topic

Number Format

Luis Fernandes

Joined: Sep 22, 2007
Posts: 19

I receive the number from my clients in this format : 12.855,70 ; 25.000.25 ;

1.000,00 but my app only reconize the number whitout the dots and in a format that the all number must have 15 char

for example the above number must be : 000000001285570 ; 000000002500025 ;

i need to configure my app to put the receive string in this format. can someone help with this job ?


Luis Claudio<br />MCSE ; CCNA ; SCJP 5.0
Brian Cole
Ranch Hand

Joined: Sep 20, 2005
Posts: 878
This isn't really a swing/awt question, but DecimalFormat is your friend.

bitguru blog
I agree. Here's the link:
subject: Number Format
It's not a secret anymore!