[Coco] Nitros9 C compiler. Printf can't print float or double values.

Alex Evans varmfskii at gmail.com
Thu May 16 08:51:00 EDT 2019


you need to add a call to pffinit() to enable printing floats and
doubles. You haven't run into it yet, but to print longs you need a
call to pflinit(). It doesn't matter where you put the calls, they
really only affect the linker.

On Thu, May 16, 2019 at 1:34 AM Walter Zambotti <zambotti at iinet.net.au> wrote:
>
> That's about it
>
>
>
> double myval = 0;
>
> printf("val = %f %e %g\n", myval, myval, myval);
>
>
>
> Just prints:
>
> val =
>
>
>
> What gives?
>
>
>
> Walter
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco


More information about the Coco mailing list