aboutsummaryrefslogtreecommitdiff
path: root/src/strconv
diff options
context:
space:
mode:
Diffstat (limited to 'src/strconv')
-rw-r--r--src/strconv/ftoa.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/strconv/ftoa.go b/src/strconv/ftoa.go
index 6db0d47e0f..bfe26366e1 100644
--- a/src/strconv/ftoa.go
+++ b/src/strconv/ftoa.go
@@ -44,6 +44,8 @@ var float64info = floatInfo{52, 11, -1023}
// zeros are removed).
// The special precision -1 uses the smallest number of digits
// necessary such that ParseFloat will return f exactly.
+// The exponent is written as a decimal integer;
+// for all formats other than 'b', it will be at least two digits.
func FormatFloat(f float64, fmt byte, prec, bitSize int) string {
return string(genericFtoa(make([]byte, 0, max(prec+4, 24)), f, fmt, prec, bitSize))
}