From 11a218444f59567c9c65300045dccddef60e193a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 10 Mar 2010 20:38:38 -0800 Subject: [PATCH] Revert previous change: complexN only converts to complexN. This was discussed with Ken and Russ. 6g has been changed, and both compilers now work this way. This avoids a double type conversion--first to the float type, then to the complex type. R=r CC=golang-dev, ken2, rsc https://golang.org/cl/419042 --- doc/go_spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 0778d73fc9..83d9f90e41 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -3262,7 +3262,7 @@ When converting a floating-point number to an integer, the fraction is discarded
  • A value of complex type may be converted to a different complex type, -but there is no conversion from complex to any other type. +but there is no conversion between complex and any other type.
  • When converting a number to a floating-point or complex type, the result value is rounded -- 2.50.0