Commit d8c6dac7 authored by Robert Griesemer's avatar Robert Griesemer

spec: clarify effect of rounding of constant expressions

Not a language change.

Fixes #11350.

Change-Id: I9b905f17d1ef2722cab4bae38a037270165c7d95
Reviewed-on: https://go-review.googlesource.com/11369Reviewed-by: default avatarRob Pike <r@golang.org>
parent eb30fda8
<!--{ <!--{
"Title": "The Go Programming Language Specification", "Title": "The Go Programming Language Specification",
"Subtitle": "Version of June 11, 2015", "Subtitle": "Version of June 23, 2015",
"Path": "/ref/spec" "Path": "/ref/spec"
}--> }-->
...@@ -4083,7 +4083,7 @@ the implementation restriction in the section ...@@ -4083,7 +4083,7 @@ the implementation restriction in the section
on <a href="#Constants">constants</a>. This rounding may cause a on <a href="#Constants">constants</a>. This rounding may cause a
floating-point constant expression to be invalid in an integer floating-point constant expression to be invalid in an integer
context, even if it would be integral when calculated using infinite context, even if it would be integral when calculated using infinite
precision. precision, and vice versa.
</p> </p>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment