]> Cypherpunks repositories - gostls13.git/commitdiff
math: add doc note about floating point operation
authorgulyasm <mgulyas86@gmail.com>
Sat, 7 Jan 2017 22:30:47 +0000 (23:30 +0100)
committerIan Lance Taylor <iant@golang.org>
Tue, 6 Jun 2017 20:20:41 +0000 (20:20 +0000)
Go doesn't guarantee that the result of floating point operations will
be the same on different architectures. It was not stated in the
documentation, that can lead to confusion.

Fixes #18354

Change-Id: Idb1b4c256fb9a7158a74256136eca3b8ce44476f
Reviewed-on: https://go-review.googlesource.com/34938
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/math/const.go

index b4405383c8ead39434a1846957b08698dff3ee06..951e9a2a4b2dac70e706ec5b54a18afe78d64ffe 100644 (file)
@@ -3,6 +3,9 @@
 // license that can be found in the LICENSE file.
 
 // Package math provides basic constants and mathematical functions.
+//
+// Note that the package doesn't guarantee identical results of floating point operations on
+// different architectures.
 package math
 
 // Mathematical constants.