> >Hm. That's a problem. What about
> >
> >5/2 = 2
> >
> >5/2.0 = 2.5
> >
> >?
>
> 1
> I am not a committer but I don't like it. The original implementation
> only used integers but that doesn't mean that it is correct. It make
> much more sense to have 5/2 = 2.5 instead of 2.
>
It is both correct and has use cases. Also, it corresponds to the
java arithmetics wrt integers and "real numbers". Sometimes, it makes
more sense to get 2.5 as a result of 5/2, then use real numbers,
sometimes it makes more sense to get 2 as a result of 5/2 (mostly,
when rendering a view), then you can use integers.
incze

To unsubscribe, email: velocitydevunsubscribe@jakarta.apache.org
For additional commands, email: velocitydevhelp@jakarta.apache.org
