David, rtl_printf does not support floating point numbers. You have to pass the data to user space using a fifo or shared memory and print the value from there.
Regards, Rich -----Original Message----- From: David Armstrong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 1:58 AM To: '[EMAIL PROTECTED]' Subject: [rtl] fp-how? I am new to rtlinux and a present am trying my hardest to use floating point arithmetic. I have used the function "pthread_setfp_np(pthread_self(), 1)" within my thread to enable me to carry out floating point operations. But have had no success. I print out the result using "rtl_printf". Is there something else I should be doing. I have read the gettingStarted.txt file and followed its instruction and I have tried running the fp example. Regarding the example I followed Phil Wilshire instructions as to how to compile and run the fp programme. However though this was successful he didn't explain what the programme was meant to do our how you new it was working. David Renishaw plc Scotland ------------------------------------------------------------------------ This email and any attachments are confidential and are for the use of the addressee only. If you are not the addressee, you must not use or disclose the contents to any other person. Please immediately notify the sender and delete the email. Statements and opinions expressed here may not represent those of the company. Email correspondence is monitored by the company. The parent company of the Renishaw Group is Renishaw plc, registered in England no. 1106260. Registered Office: New Mills, Wotton-under-Edge Gloucestershire, GL12 8JR, United Kingdom. Tel +44 (0) 1453 524524 ----------------------------------------------------------------------- -- [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/ -- [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/
