From: Rob Pike Date: Wed, 2 Feb 2011 05:10:16 +0000 (-0800) Subject: fmt: document %b for floating point X-Git-Tag: weekly.2011-02-15~135 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=03a93158d23fe019ec168df7f1a46da412bc0196;p=gostls13.git fmt: document %b for floating point R=rsc CC=golang-dev https://golang.org/cl/4073051 --- diff --git a/src/pkg/fmt/doc.go b/src/pkg/fmt/doc.go index 02c29389d0..03800aa47a 100644 --- a/src/pkg/fmt/doc.go +++ b/src/pkg/fmt/doc.go @@ -28,6 +28,8 @@ %X base 16, with upper-case letters for A-F %U Unicode format: U+1234; same as "U+%x" with 4 digits default Floating-point and complex constituents: + %b decimalless scientific notation with exponent a power + of two, in the manner of strconv.Ftoa32, e.g. -123456p-78 %e scientific notation, e.g. -1234.456e+78 %E scientific notation, e.g. -1234.456E+78 %f decimal point but no exponent, e.g. 123.456