Hello,
I gather your currency values reside in a database. If so, refer to the data
type mapping between Java and the types of your database of your JDBC
driver. In any case, using BigDecimal will alleviate the problem of
rounding.
Regards.
Gurhan.
>Hello,
>
>I'm using float for storage of currency values. Is the float type the
>appropriate choice for this purpose?
>
>Sometimes a value like 33453 will automatically transformed to
>22452.99. How can I prevent Java doing this?
>
>
>Thanx,
>
>Steffen
___________________________________________________________________________
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