Alexander Hordt wrote:
> 
> Hello!
> I am a beginner in Java and I have a question:
> With the class NunberFormat I can convert marvelously numbers into
> representations of other countries, but as I convert a stringer again
> into a number in such a way that I know a counting on this number
> again?
> Thanks.
> Alex
> Mit freundlichen Gruessen
>

See java.text.NumberFormat itself, see paragraph 6 of the NumberFormat
class description in the API documentation:

"You can also use a NumberFormat to parse numbers: 

      myNumber = nf.parse(myString);
      

Use getInstance or getNumberInstance to get the normal number format. Use 
getCurrencyInstance to
get the currency number format. And use getPercentInstance to get a format for 
displaying percentages. With this
format, a fraction like 0.53 is displayed as 53%."


 


--
Joi Ellis                    Software Engineer
Aravox Technologies          [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to