Hi Frederic,
On Thu, Apr 26, 2001 at 01:14:12PM +0000, Frederic Cazenave wrote:
> Hi,
>
> What can I do to print float inside a fp thread ???
> I tryed to do
> char f_print[128];
>
> sprintf(f_print,"%f %f",128.5, 12.5);
> rtl_printf("%s \n",f_print);
>
> but the result is : %f %f
Kernel's sprintf does not support floating point formatting. If it is
a must-be for you, probably the easiest way is to separate the integer
and fractional part of your float and print it as two integers.
Regards,
pa
--
..........................................................................
Pavel Andris | tel: +421 7 5941 2167
Institute of Control Theory and Robotics | fax: +421 7 5477 6045
Slovak Academy of Sciences |
Dubravska cesta 9 | e-mail: [EMAIL PROTECTED]
SK - 842 37 Bratislava |
Slovakia |
..........................................................................
"The hardest thing is to take something people don't need and make it part
of their lives."
Sheila Hewett, vice-president for marketing and advertising
...........................................................................
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/