Thanks, I will use a fifo to send my floating point results to a linux
task.
Fred
Pavel Andris wrote:
>
> 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
--
_________________________________________________________
| |
| Frederic CAZENAVE |
| _/\_ /^= McGill Radar |
| \_/ \// Box 198, MacDonald College |
| | /-\ | Ste Anne de Bellevue |
| || || Quebec, Canada H9X 3V9 |
| Tel (514) 398 7733 fax (514) 398 7755 |
| mailto:[EMAIL PROTECTED] |
| http://www.mpl.orstom.fr/hydrologie/catch/ |
|__________________________________________________________|
-- [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/