On Wed, Oct 10, 2012 at 9:20 PM, Steven D'Aprano <steve at pearwood.info> 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