avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] How To Convert Floating Point Numbers To Strings...?


From: Chris McFarlen
Subject: Re: [avr-gcc-list] How To Convert Floating Point Numbers To Strings...?
Date: Fri, 22 Mar 2002 17:28:16 -0600

In the latest avr-libc there is a dtostrf().  It is what you want.

prototype is:
char *dtostrf(double __val, char __width, char __prec, char *__s);

Latest avr-libc:
http://www.amelek.gda.pl/avr/libc/avr-libc-20020203.tar.gz

Have much fun!
Chris

On Friday 22 March 2002 14:11, John Branthoover wrote:
> David,
>      Thanks for the suggestion but the AVR-GCC
> compiler does not support this sprintf.  No stdio.h
> file.
>
>      Another person suggested this link:
> http://home.t-online.de/home/Michael.Stumpf/AVR/AVR.htm.
> It is a Floating point library in assembly language by
>  Michael Stumpf.  I am pretty much the rookie at this
> but I hope to be able to get it to work....
>
> --- David Smead <address@hidden> wrote:
> > sprintf???
> >
> > --
> > Sincerely,
> >
> > David Smead
> > http://www.amplepower.com.
> >
> > On Fri, 22 Mar 2002, John Branthoover wrote:
> > > Hello All,
> > >   Is there a easy way to convert floating point
> >
> > numbers
> >
> > > or variables to strings.  I have a need to display
> > > several floating point numbers on a dumb terminal
> >
> > via
> >
> > > the UART.
> > >
> > >   As always,  any information will be greatly
> > > appreciated.  Thank you for your time and have a
> >
> > great
> >
> > > day!.
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Movies - coverage of the 74th Academy
> >
> > Awards®
> >
> > > http://movies.yahoo.com/
> > > avr-gcc-list at http://avr1.org
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
> avr-gcc-list at http://avr1.org

-------------------------------------------------------

avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]