[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/src interface.c

Martin Poirier theeth at yahoo.com
Mon Dec 4 12:12:15 CET 2006


As long as one of the operand is a float, the result
will be float, yes.

Martin

--- Tom M <letterrip at gmail.com> wrote:

> does 3.0/2.0 or 3.0/2 give the float result with
> current code (as
> expected with python) if so i don't really see a big
> deal, especially
> if the result is displayed somewhere...
> 
> LetterRip
> 
> > could we make the new/future style python division
> mode default there?
> > it makes the / operator a float op, and if you
> want int division you do //
> >
> > In [1]: from __future__ import division
> >
> > In [2]: 3 / 2
> > Out[2]: 1.5
> >
> > In [3]: 3 // 2
> > Out[3]: 1
> >
> > i think that is what makes sense for people and
> especially little
> > scripting in buttons - i guess is kept the old way
> in Py 2 only for bw
> > compat reasons and that Py 3000 will default to
> that. i dont know how to
> > initialize that context in c for the numbuts but
> probably it is
> > straightforward enough..
> >
> > ~Toni
> >
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers at projects.blender.org
> >
>
http://projects.blender.org/mailman/listinfo/bf-committers
> >
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
>
http://projects.blender.org/mailman/listinfo/bf-committers
> 



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


More information about the Bf-committers mailing list