Re: Struts Validator floatRange has roundoff error

2005-10-04 Thread Michael Vogt
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > Michael Vogt wrote: > > > > Is this a known problem or the expecxted behaviour? > > What is the best way to work around it? > > That's the expected behaviour. Floats in Java (as in most programming > > languages) have limitted precision. 90.0f =

Re: Struts Validator floatRange has roundoff error

2005-10-04 Thread Laurie Harper
Michael Vogt wrote: The Struts Validator floatRange seems to have roundoff error. For the validation.xml configuration snippet below, user input of 90.1 fails validation, as expected, but 90.01 does not. min -90

Struts Validator floatRange has roundoff error

2005-10-04 Thread Michael Vogt
The Struts Validator floatRange seems to have roundoff error. For the validation.xml configuration snippet below, user input of 90.1 fails validation, as expected, but 90.01 does not. min -90 max