hi:
you can try
<%
String tmpb=request.getParameter("txt1");
int Tmpb1=0;
//define variant who equals the part of integer
int Tmpb2=0;
// define variant who equals the part of decimal
if(tmpb.indexOf(".",0)!=-1)
{
Tmpb1=Integer.parseInt(tmpb.substring(0,tmpb.indexOf(".",0));
Tmpb2=Integer.parseInt(tmpb.substring(tmpb.indexOf(".",0)+1,tmpb.length()));
}else{
Tmpb1=Integer.parseInt(tmpb);
}
//then you can compare this two parts of B with the same parts of A
%>
----- Original Message -----
From: "Leena Albert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 19, 2000 8:51 PM
Subject: Urgent please help!
> Hi,
> I have a small problem in using datatype. In a javabean, I am getting a value "A"
>from pl/sql procedure and am comparing it with a value "B" entered in a textbox ,
>that is "B" should be greater than or equal to "A". I have declared "B" as double in
>the bean, as i need to use a decimal value like 1234578899.12345678 .
>
> double B = Double.parseDouble(request.getParameter("txt1"));
>
> Eventhough if i give value bigger than A, it is giving the value as low. If i get
>less value for "A" and if i give bigger value than that for "B", it works. I feel
>that, the value is getting truncated while getting the parameter from the form .
> What datatype can i use, so that even if i use big values, it should compare?
>
> Thanks in advance,
> Leena
>
>
>
>
> _________________________________________________
> Get Your Free Email At, http://www.rediffmail.com
>
> For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets