AW: [En-Nut-Discussion] Floating number problem
Oliver Schulz
Oliver.Schulz at bong.de
Tue Mar 9 10:39:39 CET 2004
Hi,
to use floating point numbers with printf/scanf you MUST use the library nutcrtf instead of nutcrt!
Please change the appropriate line in the Makefile.
Cheers,
Oliver.
> -----Ursprüngliche Nachricht-----
> Von: en-nut-discussion-bounces at egnite.de
> [mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von Sigurd
> Kleppan
> Gesendet: Montag, 8. März 2004 15:06
> An: en-nut-discussion at egnite.de
> Betreff: [En-Nut-Discussion] Floating number problem
>
>
> I have tried to print out a floating number with the fprintf
> command. I just got out a f instead of the variable.
>
> Why doesn't this work?
>
> floatvar = 0.2;
> fprintf(stream, "hello, here is a float %f", floatvar);
>
>
>
> Sigurd Kleppan
> sigurkl at frisurf.no
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
More information about the En-Nut-Discussion
mailing list