aboutsummaryrefslogtreecommitdiff
path: root/content/constants.article
diff options
context:
space:
mode:
Diffstat (limited to 'content/constants.article')
-rw-r--r--content/constants.article4
1 files changed, 1 insertions, 3 deletions
diff --git a/content/constants.article b/content/constants.article
index 36c4edc..5148cf1 100644
--- a/content/constants.article
+++ b/content/constants.article
@@ -264,7 +264,7 @@ Floating-point values are a good place to introduce the concept of overflow, or
Numeric constants live in an arbitrary-precision numeric space; they are just regular numbers.
But when they are assigned to a variable the value must be able to fit in the destination.
We can declare a constant with a very large value:
-
+
.code constants/float3.go /Huge/
—that's just a number, after all—but we can't assign it or even print it. This statement won't even compile:
@@ -512,5 +512,3 @@ or
and have the results mean what you expect.
Because in Go, numeric constants work as you expect: like numbers.
-
-