Questions about mathematical signs...

Russell Blau russblau at hotmail.com
Mon Feb 7 11:03:20 EST 2005


"Dan Bishop" <danb_83 at yahoo.com> wrote in message
news:1107751594.529913.105480 at c13g2000cwb.googlegroups.com...
> Jeff Epler wrote:
> > On Sun, Feb 06, 2005 at 12:26:30PM -0800, administrata wrote:
> > > Hi! I'm programming maths programs.
> > > And I got some questions about mathematical signs.
> ...
> > > 2. Inputing fractions like (a / b) + (c / d), It's tiring work too.
> > >    Can it be simplified?
> >
> > Because of the rules of operator precedence,
> >     a / b + c / d
> > has the same meaning as the expression you gave.
>
> And it's important to note that that meaning will change in version
> 3.0.  Until then, it's best to start every module with "from __future__
> import division".

You're right, of course, but that's like offering advice about how to shift
gears on a bicycle to someone who hasn't even figured out where the pedals
are yet!  ;-)


-- 
I don't actually read my hotmail account, but you can replace hotmail with
excite if you really want to reach me.






More information about the Python-list mailing list