try to use Class BigDecimal.
Leena Albert wrote:
> 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
--
Best Regards,
Yi Liu
Java Programmer
--
Invisible.Ink Corporation
1400 Old Country Road Suite 408
Westbury, NY 11590
Phone: (516) 338 - 5283 Ext.148
Fax: (516) 876 - 8032
===========================================================================
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