[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] fp-how?



Alternately, if you know the approximate range of the
number -- you do know the approximate range of the number,
don't you? -- you can do some integer math and compute the
integer and fractional parts and create an ASCII
representation that way.

    Norm

----- Original Message -----
From: Basham, Richard R <richard.r.basham@boeing.com>
To: <rtl@fsmlabs.com>
Sent: Tuesday, October 02, 2001 9:44 AM
Subject: RE: [rtl] fp-how?


> 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:David.Armstrong@renishaw.com]
> Sent: Tuesday, October 02, 2001 1:58 AM
> To: 'rtl@fsmlabs.com'
> 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 majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail
majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail
majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>
>