mirror of
https://github.com/golang/go
synced 2024-11-22 01:14:40 -07:00
Clarify that conversions to complex are OK.
R=r CC=golang-dev https://golang.org/cl/296042
This commit is contained in:
parent
df53544f4f
commit
5cf707b499
@ -3262,7 +3262,7 @@ When converting a floating-point number to an integer, the fraction is discarded
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
A value of complex type may be converted to a different complex type,
|
A value of complex type may be converted to a different complex type,
|
||||||
but there is no conversion between complex and any other type.
|
but there is no conversion from complex to any other type.
|
||||||
<li>
|
<li>
|
||||||
When converting a number to a floating-point or complex type,
|
When converting a number to a floating-point or complex type,
|
||||||
the result value is rounded
|
the result value is rounded
|
||||||
|
Loading…
Reference in New Issue
Block a user