-0.0

-0.0

[8] -0 は、0 です。

[17] 数学的には、 -0+0等しいとする場合が多いです。

[18] 計算機上では、整数型では -0+0等しい (というより唯一の 0 のみ存在する) とし、 浮動小数点型では -0+0 と必ずしも同じではないとするのが一般的です。

[9] JSON では構文上 -0 を扱うことができますが、 プログラミング言語等との変換での扱いは様々で、 相互運用性は高くありません。

[1] Perl1/"-inf" とすれば -0 が得られます。

$ perl -MDevel::Peek -e 'print Devel::Peek::Dump 1/"-inf"'
SV = NV(0x19afe60) at 0x19947d8
  REFCNT = 1
  FLAGS = (PADTMP,NOK,READONLY,pNOK)
  NV = -0

[2] この値を print すると Linux 上の 5.10.1 では「-0」、 5.14.2 では「0」 になります。

この違いが Perl の版の違いによるものかはわかりませんが。

[21] 5.24 だと 0 なのに 5.32.0 だと -0

[3] perldelta - search.cpan.org ( ( 版)) http://search.cpan.org/~jesse/perl-5.14.0/pod/perldelta.pod#Negative_zero

[4] XPath 1.0 では-0string() では「0」に変換されます。

[5] XQuery and XPath Data Model 3.0 ( ( 版)) http://www.w3.org/TR/xpath-datamodel-3/#NegativeZero

[6] XPath and XQuery Functions and Operators 3.0 ( ( 版)) http://www.w3.org/TR/xpath-functions-3/#constructor-functions-for-xsd-types

[10] XQuery and XPath Data Model 3.1 () https://www.w3.org/TR/2017/REC-xpath-datamodel-31-20170321/#NegativeZero

[22] 地球民暦+0 年と -0 年を区別しています。

[11] [geometry] Do not structured serialize -0 for m13 of a 2d matrix (zcorpan著, ) https://github.com/w3c/fxtf-drafts/commit/bc125ded1bc101144646000a38655053bdc58199

[12] [geometry] Treat 0 and -0 as equal throughout (zcorpan著, ) https://github.com/w3c/fxtf-drafts/commit/8a00241aad2e7b97f84785cccd943c454ec218b0

[13] Disallow -0 in algorithm for checking array index (#517) (TimothyGu著, ) https://github.com/heycam/webidl/commit/3750d7a9bc1c61d2c7255ab7866758d53333a83d

[14] Definition of "is an array index" makes "-0" an array index · Issue #516 · heycam/webidl () https://github.com/heycam/webidl/issues/516

[15] Definition of "is an array index" makes "-0" an array index · Issue #516 · heycam/webidl () https://github.com/heycam/webidl/issues/516

[16] Disallow -0 in algorithm for checking array index by TimothyGu · Pull Request #517 · heycam/webidl () https://github.com/heycam/webidl/pull/517

[19] [css-values-4] Define how negative zero works in math functions. Fina… (tabatkins著, ) https://github.com/w3c/csswg-drafts/commit/efc3452ee4de62ca8e0df408853426aa718fab15

[20] −0 - Wikipedia () https://ja.wikipedia.org/wiki/%E2%88%920