[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] Many Questions - VME, Scheduling, Semaphores, Interrupts, Etc.
>>>>> "Stephen" == Stephen D Cohen <scohen@xybion.com> writes:
Stephen> 3) How do I get sprintf or rtl_printf to format a floating
Stephen> point number for me? I'm getting tired of printing 1000
Stephen> times my float as a long and adding the decimal point in my
Stephen> head. Must be something simple (and stupid) that I am doing
Stephen> wrong.
You could send the data to a Linux thread (via a fifo) and have it
printed there in any form you like. Alternatively, sprintf the
integer, then do some string fiddling on the result to insert the
period, then print the resulting string...
paul