Involved Source Files Package floatfmt writes floats as JSON numbers, by their shortest decimal, as ECMA-262 formats numbers: the
format of encoding/json and of encoding/json/jsontext.float_table.go
Package-Level Functions (only one)
AppendFloat appends the finite float f, of the precision bits, 64 or 32, as ECMA-262, 10th edition, section
7.1.12.1 formats a number, except that -0 is -0: as strconv.AppendFloat with the format 'f', or 'e' below 1e-6
and from 1e21, whose exponent has no leading zero, writes it.
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.