1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:34:40 -07:00

fmt: document %b for floating point

R=rsc
CC=golang-dev
https://golang.org/cl/4073051
This commit is contained in:
Rob Pike 2011-02-01 21:10:16 -08:00
parent 622d729b86
commit 03a93158d2

View File

@ -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