Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76324

Odd floor-division corner case

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Odd floor-division corner case
Date 2014-08-14 18:31 +0100
Newsgroups comp.lang.python
Message-ID <mailman.13005.1408037563.18130.python-list@python.org> (permalink)

Show all headers | View raw


 From http://bugs.python.org/issue22198

 >>> -0.5 // float('inf')
-1.0

What should it be?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Odd floor-division corner case Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-14 18:31 +0100

csiph-web