From a838191406e80b3b0d665e7b1ba38197eacc7b72 Mon Sep 17 00:00:00 2001 From: gulyasm Date: Sat, 7 Jan 2017 23:30:47 +0100 Subject: [PATCH] math: add doc note about floating point operation 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 --- src/math/const.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/math/const.go b/src/math/const.go index b4405383c8..951e9a2a4b 100644 --- a/src/math/const.go +++ b/src/math/const.go @@ -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. -- 2.50.0