root wrote:
>
> Hi, I have rtlinux-2.0 setup and running fine. My application will
> require that I do floating point crunching and I'd like to look at the
> numbers. I have the pthread_set_fp turned on. It seems rtl_printf does
> not recognize the %f (is this true?). I was wondering if there is anyway
> to look at the numbers and verify that indeed the fp calcs are really
> happening. Thanks
> John Adams
Unfortunately (rtl_)printk does not support the %f format option.
Normally you need to get the part before and after the decimal point
(use modulo %) and then cast them into integer, then you can use
something like rtl_printf("%d.%d\n", modulo, remainder);
Regards, Stuart
--- [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/