Discussion:
[Numpy-discussion] What does -0.0 means?
Arnaldo Russo
2016-01-20 16:25:42 UTC
Permalink
Hi all,

After fitting a curve, the output returns the initial value as *-0.0*. Why
not a simple 0.0?
What is this difference?
Sorry for the stupid question, but why exist a negative zero?

Cheers,
Arnaldo.
---
Arnaldo D'Amaral Pereira Granja Russo
Instituto Ambiental Boto Flipper
institutobotoflipper .org
Jaidev Deshpande
2016-01-20 16:45:03 UTC
Permalink
Hi Arnaldo,
Post by Arnaldo Russo
Hi all,
After fitting a curve, the output returns the initial value as -0.0. Why
not a simple 0.0?
Post by Arnaldo Russo
What is this difference?
Sorry for the stupid question, but why exist a negative zero?
Haha, that used to stump me too, before I found out that there's such a
thing as a signed zero. The IEEE 754 standard accommodates it.

You can read more at https://en.m.wikipedia.org/wiki/Signed_zero
Post by Arnaldo Russo
Cheers,
Arnaldo.
---
Arnaldo D'Amaral Pereira Granja Russo
Instituto Ambiental Boto Flipper
institutobotoflipper .org
_______________________________________________
NumPy-Discussion mailing list
https://mail.scipy.org/mailman/listinfo/numpy-discussion
Arnaldo Russo
2016-01-20 18:27:15 UTC
Permalink
hahaha!

Thanks

---
Arnaldo D'Amaral Pereira Granja Russo
Instituto Ambiental Boto Flipper
institutobotoflipper .org
Post by Jaidev Deshpande
Hi Arnaldo,
Post by Arnaldo Russo
Hi all,
After fitting a curve, the output returns the initial value as -0.0. Why
not a simple 0.0?
Post by Arnaldo Russo
What is this difference?
Sorry for the stupid question, but why exist a negative zero?
Haha, that used to stump me too, before I found out that there's such a
thing as a signed zero. The IEEE 754 standard accommodates it.
You can read more at https://en.m.wikipedia.org/wiki/Signed_zero
Post by Arnaldo Russo
Cheers,
Arnaldo.
---
Arnaldo D'Amaral Pereira Granja Russo
Instituto Ambiental Boto Flipper
institutobotoflipper .org
_______________________________________________
NumPy-Discussion mailing list
https://mail.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________
NumPy-Discussion mailing list
https://mail.scipy.org/mailman/listinfo/numpy-discussion
Loading...