[8] [DFN[[[-0]]]] は、[[負]]の [[0]] です。

[REFS[
- [7] [CITE@en[0 (number) - SuikaWiki Data]] ([TIME[2016-01-01 16:47:13 +09:00]] 版) <https://data.suikawiki.org/number/-0>
]REFS]

[17] [[数学]]的には、 [N[-0]] は [N[+0]] と[[等しい]]とする場合が多いです。

[18] [[計算機]]上では、[[整数型]]では [N[-0]] は [N[+0]] と[[等しい]]
(というより唯一の [N[0]] のみ存在する) とし、
[[浮動小数点型]]では [N[-0]] は [N[+0]] と必ずしも同じではないとするのが一般的です。

[9] [[JSON]] では構文上 [CODE[-0]] を扱うことができますが、
[[プログラミング言語]]等との変換での扱いは様々で、
[[相互運用性]]は高くありません。

[1] [[Perl]] で [CODE(perl)[[N[1]]/"[[-inf]]"]] とすれば [[-0]] が得られます。

[PRE[
$ perl -MDevel::Peek -e 'print Devel::Peek::Dump 1/"-inf"'
SV = NV(0x19afe60) at 0x19947d8
  REFCNT = 1
  FLAGS = (PADTMP,NOK,READONLY,pNOK)
  NV = -0
]PRE]

[2] この値を [CODE(perl)[[[print]]]] すると [[Linux]] 上の 5.10.1 では「[CODE[-0]]」、
5.14.2 では「[CODE(perl)[0]]」 になります。

;; この違いが [[Perl]] の版の違いによるものかはわかりませんが。

[21] 
5.24 だと [CODE[0]] なのに 5.32.0 だと [CODE[-0]]。


[3] [CITE[perldelta - search.cpan.org]]
( ([TIME[2013-10-06 12:08:42 +09:00]] 版))
<http://search.cpan.org/~jesse/perl-5.14.0/pod/perldelta.pod#Negative_zero>

[4] [[XPath 1.0]] では[[-0]] も [CODE(XPathFunction)@en[[[string()]]]]
では「[CODE[0]]」に変換されます。

[5] [CITE@en[XQuery and XPath Data Model 3.0]]
( ([TIME[2014-04-08 07:00:06 +09:00]] 版))
<http://www.w3.org/TR/xpath-datamodel-3/#NegativeZero>

[6] [CITE@EN[XPath and XQuery Functions and Operators 3.0]]
( ([TIME[2014-04-08 07:02:07 +09:00]] 版))
<http://www.w3.org/TR/xpath-functions-3/#constructor-functions-for-xsd-types>

[10] [CITE@en[XQuery and XPath Data Model 3.1]] ([TIME[2017-03-20 07:26:25 +09:00]]) <https://www.w3.org/TR/2017/REC-xpath-datamodel-31-20170321/#NegativeZero>

[23] 
[[ISO 8601の日時形式]]では [N[+0]] 年も [N[-0]] 年も記述できますが、
その違いは何も規定がありません。どちらも同じ[[0年]]を指すと思われます。

[22] 
[[地球民暦]]は [N[+0]] 年と [N[-0]] 年を区別しています。



[11] [CITE@en['''['''geometry''']''' Do not structured serialize -0 for m13 of a 2d matrix]]
([[zcorpan]]著, [TIME[2017-05-16 18:30:59 +09:00]])
<https://github.com/w3c/fxtf-drafts/commit/bc125ded1bc101144646000a38655053bdc58199>

[12] [CITE@en['''['''geometry''']''' Treat 0 and -0 as equal throughout]]
([[zcorpan]]著, [TIME[2017-05-19 17:40:59 +09:00]])
<https://github.com/w3c/fxtf-drafts/commit/8a00241aad2e7b97f84785cccd943c454ec218b0>

[13] [CITE@en[Disallow -0 in algorithm for checking array index (#517)]]
([[TimothyGu]]著, [TIME[2018-02-09 09:21:27 +09:00]])
<https://github.com/heycam/webidl/commit/3750d7a9bc1c61d2c7255ab7866758d53333a83d>

[14] [CITE@en[Definition of "is an array index" makes "-0" an array index · Issue #516 · heycam/webidl]]
([TIME[2018-02-11 17:31:21 +09:00]])
<https://github.com/heycam/webidl/issues/516>

[15] [CITE@en[Definition of "is an array index" makes "-0" an array index · Issue #516 · heycam/webidl]]
([TIME[2018-02-11 17:31:51 +09:00]])
<https://github.com/heycam/webidl/issues/516>

[16] [CITE@en[Disallow -0 in algorithm for checking array index by TimothyGu · Pull Request #517 · heycam/webidl]]
([TIME[2018-02-11 17:32:03 +09:00]])
<https://github.com/heycam/webidl/pull/517>

[19] [CITE@en['''['''css-values-4''']''' Define how negative zero works in math functions. Fina…]]
([[tabatkins]]著, [TIME[2018-06-15 08:01:37 +09:00]])
<https://github.com/w3c/csswg-drafts/commit/efc3452ee4de62ca8e0df408853426aa718fab15>

[20] [CITE@ja[−0 - Wikipedia]]
([TIME[2018-10-26 05:05:37 +09:00]])
<https://ja.wikipedia.org/wiki/%E2%88%920>