>javascript
>>62018398
It's not even funny anymore. Fuck anybody using js.
In what kind of situation would I need this?
Negative zero can signal underflow in an IEEE floating point number.
>>62018398
without a doubt the most dishonest language to ever come into existence
fuck, it's even called JAVAscript exclusively for marketing purposes, it has absoultely nothing to do with java
>>62018398
>a different package for positive-zero
>not just using !negativeZero
Fucking retards.
>>62018398
the worst thing about it is that you know that there are going to be some braindead web "developers" who will install this and the "positive-zero" under the "related" section because they will honestly think they need both.
>>62018461
normal zero would evaluate to true when passed to negativeZero.
>>62018461
>/g/
>>62018478
it would have been logical to have a single package that just returns 1, 0 or -1
>>62018461
You know that with that, 53 would be zero too?
>>62018398
>>62018427
>>62018446
>I have no idea how IEEE-754 works
Also,Object.is()is enough to make a check for this. I thought nanopackages were out of fashion after the leftpad shitshow.