[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] How can I print double in rtl_printf
hi,
My crapy solution is to multiply with 10^x with x the precision you need.
Then cast to a long, then rtl_printf the long
Another way is converting your float to ASCII and piping it through the
realtime fifo to user space.
Peter
On Friday 07 December 2001 23:31, you wrote:
> Hi,
>
> I tried to print 3.14159 in rtl_printf.
> But %f, %lf, %e are not working in rtl_printf().
> Does anybody know how to do this?
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org