]> Cypherpunks repositories - gostls13.git/commitdiff
strconv: remove obsolete comment.
authorIan Lance Taylor <iant@golang.org>
Tue, 20 Dec 2011 04:57:32 +0000 (20:57 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 20 Dec 2011 04:57:32 +0000 (20:57 -0800)
R=r, rsc
CC=golang-dev
https://golang.org/cl/5490078

src/pkg/strconv/ftoa.go

index 692e3e4087520ff28c8ac79b796b515a4abef4b0..f4434fd51753c8a96e0ecee3406f09af2c8ae063 100644 (file)
@@ -40,11 +40,7 @@ var float64info = floatInfo{52, 11, -1023}
 // For 'e', 'E', and 'f' it is the number of digits after the decimal point.
 // For 'g' and 'G' it is the total number of digits.
 // The special precision -1 uses the smallest number of digits
-// necessary such that Atof32 will return f exactly.
-//
-// Ftoa32(f) is not the same as Ftoa64(float32(f)),
-// because correct rounding and the number of digits
-// needed to identify f depend on the precision of the representation.
+// necessary such that ParseFloat will return f exactly.
 func FormatFloat(f float64, fmt byte, prec, bitSize int) string {
        return string(genericFtoa(make([]byte, 0, max(prec+4, 24)), f, fmt, prec, bitSize))
 }