Re: Floor value in math operators

2009-04-09 Thread Avi
On Apr 9, 8:26 am, David Smith wrote: > AggieDan04 wrote: > > On Apr 8, 12:08 pm, David Smith wrote: > >> Avi wrote: > >>> Hi, > >>> This will be a very simple question to ask all the awesome programmers > >>> here: > >>> How can I get answer in in decimals for such a math operator: > >>> 3/2 > >

Re: Floor value in math operators

2009-04-09 Thread David Smith
AggieDan04 wrote: > On Apr 8, 12:08 pm, David Smith wrote: >> Avi wrote: >>> Hi, >>> This will be a very simple question to ask all the awesome programmers >>> here: >>> How can I get answer in in decimals for such a math operator: >>> 3/2 >>> I get 1. I want to get 1.5 >>> Thanks in advance, >>>

Re: Floor value in math operators

2009-04-09 Thread John Machin
On Apr 9, 4:18 pm, AggieDan04 wrote: > On Apr 8, 12:08 pm, David Smith wrote: > > > > > Avi wrote: > > > Hi, > > > > This will be a very simple question to ask all the awesome programmers > > > here: > > > > How can I get answer in in decimals for such a math operator: > > > > 3/2 > > > > I get 1

Re: Floor value in math operators

2009-04-08 Thread AggieDan04
On Apr 8, 12:08 pm, David Smith wrote: > Avi wrote: > > Hi, > > > This will be a very simple question to ask all the awesome programmers > > here: > > > How can I get answer in in decimals for such a math operator: > > > 3/2 > > > I get 1. I want to get 1.5 > > > Thanks in advance, > > Avi > > I'm

Re: Floor value in math operators

2009-04-08 Thread David Smith
Avi wrote: > Hi, > > This will be a very simple question to ask all the awesome programmers > here: > > How can I get answer in in decimals for such a math operator: > > 3/2 > > I get 1. I want to get 1.5 > > Thanks in advance, > Avi I'm going to assume your operands are variables instead of

Re: Floor value in math operators

2009-04-08 Thread Diez B. Roggisch
> > In python2.6 and 3.x, the new behavior is standard. Apparently that is nonsense - it seems to be not standard for 2.6. Which Makes sense I guess. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Floor value in math operators

2009-04-08 Thread Diez B. Roggisch
Avi wrote: > Hi, > > This will be a very simple question to ask all the awesome programmers > here: > > How can I get answer in in decimals for such a math operator: > > 3/2 > > I get 1. I want to get 1.5 You don't say which python-version you have. Depending on that, the answer is different.

Re: Floor value in math operators

2009-04-08 Thread Chris Rebert
On Wed, Apr 8, 2009 at 9:03 AM, Avi wrote: > Hi, > > This will be a very simple question to ask all the awesome programmers > here: > > How can I get answer in in decimals for such a math operator: > > 3/2 > > I get 1. I want to get 1.5 Add the following line to the top of your program (or use Py

Floor value in math operators

2009-04-08 Thread Avi
Hi, This will be a very simple question to ask all the awesome programmers here: How can I get answer in in decimals for such a math operator: 3/2 I get 1. I want to get 1.5 Thanks in advance, Avi -- http://mail.python.org/mailman/listinfo/python-list