This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: diag_printf and float problem
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Tomasz Kutyla <tkutyla at marp dot pl>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 03 Apr 2007 07:14:54 -0600
- Subject: Re: [ECOS] diag_printf and float problem
- References: <46125017.7090207@marp.pl>
Tomasz Kutyla wrote:
Hi,
It seems to be some tiny problem but it happens;)
My code looks like below:
float f = 10.5;
diag_printf("Test F = %f", f);
and on the terminal I've got:
Test F = %f
Why is that??
diag_printf() doesn't support floating point. If you need to print
floating point values, you'll need to use the stdio printf() function.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss