Kurtis, thanks for your reply. 
El viernes, 2 de febrero de 2024 a la(s) 2:12:55 p.m. UTC-3, Kurtis Rader 
escribió:

> I think you're being confused by the lack of newlines in the output. Add 
> "\n" to the end of the printf format.
>
> On Fri, Feb 2, 2024 at 8:56 AM Juan Mamani <juanmama...@gmail.com> wrote:
>
>> Hi everybody!
>>
>> I was checking consistency  behavior of fmt.Printf with some basic 
>> samples. And for my surprise never expected what I found.
>>
>> My context:
>> OS: Linux, debian 8,9,10,11
>> Go version 1.21
>>
>> What I was doing? Learning about fmt.Printf
>> Expecting fmt.Printf behavior be the same output for any use case.
>>
>> Source code: https://go.dev/play/p/oKifC9Lw-JO
>>
>>
>> Ouput:
>> g_x 15.925999599999999
>> 15.91.6241.624            <----- for me this is freaking weird ouput
>> --------------
>> x2: 1.624
>> x2: 1.624
>> x1: 15.9259996
>> --------------
>> j: 4
>> k: 5
>> p: 1.624
>>
>> May be I found compiler bug?  Can someone help me to figure out what is 
>> going on.
>>
>> Thank you for your attention
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/0b8e4c5a-ceef-49e8-8546-bcd51200ff35n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/golang-nuts/0b8e4c5a-ceef-49e8-8546-bcd51200ff35n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/4231a4fe-c9e5-461b-8d94-bfcd25260a5cn%40googlegroups.com.

Reply via email to