Why do some math functions return -0
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Why do some math functions return -0
- From: Mike McGonagle <mjmogo@...>
- Date: 2010年9月19日 11:19:59 -0400
Hello all,
I have been doing some very simple things (mostly to get the integer
portion of a number) using math.floor, and it seems that sometimes the
function will return -0, when I am expecting a 0. Can someone please
explain why this happens? Is there a logical reason for this?
Thanks,
Mike