Because the default-format for floats is %g, not %f: https://play.golang.org/p/KZBtA3ZVN3 (documented in the fmt-godoc: https://godoc.org/fmt -- search for "default format")
On Tue, Jan 24, 2017 at 2:00 PM, Vedran Vekic <vedran.ve...@gmail.com> wrote: > https://play.golang.org/p/-gSNqKZlst > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.