loading...

re: The Lies of "===" operator VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Why would one HAVE to use -0? -0 is flawed, since, 0 is neutral, it doesn't have a sign. Take 1 for example, 1 == +1 since 1 has the + sign, where...

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 ๐Ÿ™‚

@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).

code of conduct - report abuse