File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes NumberFormat parsing - When can it fail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "NumberFormat parsing - When can it fail" Watch "NumberFormat parsing - When can it fail" New topic
Author

NumberFormat parsing - When can it fail

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430



The above example outputs 123.456. Is it not supposed to parse a string that can be converted to a number?
In what situation will a parseException be generated?
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3594
    
  14

Have you read the documentation for NumberFormat?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NumberFormat parsing - When can it fail
 
Similar Threads
Random six digit numbers
percentage format
How do I remove decimal part of double?
Formating number-Inputs by locale
Number format