On Wed, 9 Jun 2004, Matt Sisk wrote: > I understand that division can be expressed as multiplication, but is > there any particular reason why division (/) is not overloaded but > multiplication is for durations? Then you could say: > > $midpoint = ($dt2 - $dt1)/2; > > rather than > > $midpoint = ($dt2 - $dt1) * 0.5; > > Small thing. Just curious.
Well, division doesn't really work, whether you do it as multiplication or not ;) What is half a minute? How long is half a month? -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
