I see. So why does %g produce a different number than %f?

On Tuesday, January 24, 2017 at 2:03:58 PM UTC+1, Axel Wagner wrote:
>
> 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...@gmail.com 
> <javascript:>> 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...@googlegroups.com <javascript:>.
>> 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.

Reply via email to