Does anyone run Struts under WAS 4.0? Is Xerces 3.2.1 works with Struts in WAS 4.0?
Paul -----Original Message----- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 8:58 AM To: 'Struts Users Mailing List' Subject: RE: Bean Bug? Okay, I (finally) agree with you. Thanks for the explanations. Mark -----Original Message----- From: Richard Yee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 1:35 PM To: Struts Users Mailing List Subject: RE: Bean Bug? Mark, Regardless of how the number is formatted, there will always be a problem when handling currency amounts as floating numbers. Multiplication and division operations will introduce rounding errors. I have found that it is best to store currency amounts as ints and then have code in the beans to format the values for display. This also can ease I18n issues when dealing with currencies that don't contain decimals. Regards, Richard At 06:22 AM 5/1/2002 -0400, you wrote: >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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>