don't use java float
(maybe they should remove it from the language since it is not
usable...:))
float will aproximate values.
use double.

Oliver Wong wrote:
>
> I want to store the RATE into table PO_HEADER.
> But the table just store the value 123.123..
> Why it cannot store 123.123456?
> Please help me! Thank you!
>
> Table PO_HEADER:  // Using Oracel 8i
> NUMBER(10,6)   //size=10 ; scale=6
>
> float zz=(float)123.123456;
> pstmt=con.prepareStatement("insert into PO_HEADER (RATE) values (?)");
> pstmt.setFloat(1,zz);
> pstmt.executeUpdate();
>
> ___________________________________________________________________________
> 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