DEV Community

Discussion on: The Lies of "===" operator

giandodev profile image
GiandoDev Author

Hi Tomaz, I’m not talking about why ... I just show a fact 🙂 I never use -0 in my life but I am not God I am just a person.
Use or not it’s up to you 🙂

Thread Thread
citizen428 profile image
Michael Kohl

@tomas Because it's part of IEEE 754.

Apart from that, it's e.g. used to show that a small negative value was rounded up to zero (and not a positive one rounded down).