j
k
j a
j l
On Wed, Oct 10, 2012 at 9:20 PM, Steven D'Aprano wrote:
Both -0.0 and 0.0 compare equal, but they can be distinguished (although doing so is tricky in Python).
Not really:
......math.copysign(1.0,-0.0) -1.0 math.copysign(1.0,0.0) 1.0
...math.copysign(1.0,-0.0) -1.0 math.copysign(1.0,0.0) 1.0
math.copysign(1.0,-0.0) -1.0 math.copysign(1.0,0.0) 1.0
Back to the thread
Back to the list