I see your point, but aren't you incurring unnecessary formatting overhead in the presentation tier (to say nothing of ongoing maintenance)? Any Struts tag that writes to the presentation tier should take such formatting issues into consideration. For example, the formatting tag that Chandras suggests (or using java.text.NumberFormat in the action) look like good solutions.
Mark -----Original Message----- From: Richard Yee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 6:55 PM Mark, In continuing with my last email. 1.00 would be stored as 100 in an int. -Richard At 03:52 PM 4/30/2002 -0700, you wrote: >Mark, >To store decimal numbers or any currency for that matter as ints, you >store the values as the smallest unit of currency. For dollars, this is >0.01 or a cent. You then can avoid any round off errors when doing >multiplication or division. > >Regards, > >Richard -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>