Hello
        
   rtl_printf() doesn't support float or double values directtly.
  U can have u'r function to print. like


 void UserPrint( float fTempValue)
       {
            rtl_printf("%d.%03d",(int) ( fTempValue),
                 ((int)(fTempValue*1e3))% 1000 );

        }

  Here note that 3 indicates the resolution after decimal u want.

-chandu-


Disclaimer:

This document is intended for transmission to the named recipient only.  If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company


_


-----Original Message-----
From: Young Joon Lee [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 10:31 PM
To: [EMAIL PROTECTED]
Subject: [rtl] How can I print double in rtl_printf


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?
-- [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/

Reply via email to