java.lang.Float.parseFloat(String s)
java.lang.Double.parseDouble(String s)

Those should return a float or double based on the string you input.

I think this would fall more under the lines of a language question
personally.

----- Original Message -----
From: "Marcos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 26, 2000 3:14 AM
Subject: converting to decimal


> hi,
>
>     i get from my servlet (via a html form) a currency type.
>     in mysql database i have defined as a DECIMAL(8,2).
>     i do not know how can i handle that string (or whatever) from my
> servlet in order to store it in the database.
>
> thanks in advance,
>
> marcos
>
>
> --
> m a r c o s @ i v a l . e s
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to