mirror of
https://github.com/golang/go
synced 2024-11-24 15:10:02 -07:00
go_spec: unary + and - are also defined for complex types
R=r, rsc, iant, ken, iant CC=golang-dev https://golang.org/cl/6450150
This commit is contained in:
parent
1b6557a0cf
commit
95a00cae2e
@ -1,6 +1,6 @@
|
|||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Version of August 9, 2012",
|
"Subtitle": "Version of August 17, 2012",
|
||||||
"Path": "/ref/spec"
|
"Path": "/ref/spec"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
@ -2999,10 +2999,10 @@ follows:
|
|||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
For floating-point numbers,
|
For floating-point and complex numbers,
|
||||||
<code>+x</code> is the same as <code>x</code>,
|
<code>+x</code> is the same as <code>x</code>,
|
||||||
while <code>-x</code> is the negation of <code>x</code>.
|
while <code>-x</code> is the negation of <code>x</code>.
|
||||||
The result of a floating-point division by zero is not specified beyond the
|
The result of a floating-point or complex division by zero is not specified beyond the
|
||||||
IEEE-754 standard; whether a <a href="#Run_time_panics">run-time panic</a>
|
IEEE-754 standard; whether a <a href="#Run_time_panics">run-time panic</a>
|
||||||
occurs is implementation-specific.
|
occurs is implementation-specific.
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user