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

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

Re: [avr-gcc-list] Trouble with floating point formatting.


From: Douglas Dotson
Subject: Re: [avr-gcc-list] Trouble with floating point formatting.
Date: Fri, 2 Apr 2004 06:11:30 -0800 (PST)

I beleive so. Here is a snippet from the Makefile:

# Floating point printf version (requires -lm below)
LDFLAGS += -Wl,-u,vfprintf -lprintf_flt

# -lm = math library
LDFLAGS += -lm

Doug

--- Mike Panetta <address@hidden> wrote:
> Are you linking in the floating point version of the
> printf lib?
> 
> Mike
> 
> On Fri, 2004-04-02 at 00:37, Douglas Dotson wrote:
> > Any idea why his doesn't work?
> > 
> >     sprintf (buf, "%5.2lf", 3.14);
> > 
> > Result is an empty string.
> > 
> > Doug
> > 
> > 
> > 
> > _______________________________________________
> > avr-gcc-list mailing list
> > address@hidden
> > http://www.avr1.org/mailman/listinfo/avr-gcc-list
> 
> 
> 


_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list


reply via email to

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