Thanks!!
It worked

Hamid
----- Original Message -----
From: "Pradeep Shekade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 26, 2000 10:55 AM
Subject: Re: Casting


> Hamid,
>
> You cannot cast a String to a float. You need to use
> the method Float.parseFloat()(String str) to convert
> it.
>
> Pradeep Shekade
>
> --- Hamid Farooqui <[EMAIL PROTECTED]> wrote:
> > Hi all
> >
> > I understand that what we get by
> > variable = request.getParemeter("anotherVariable")
> > is always a string
> >
> > I need to use the variable in some calculations and
> > need this as a float
> > But it seems casting doesnt work in servlet
> >
> > Anybody has any idea as to how to convert this to a
> > float
> >
> > TIA
> >
> > Hamid
> >
> >
>
___________________________________________________________________________
> > 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
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
>
>
___________________________________________________________________________
> 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