[Top][All Lists]

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

Re: [avr-libc-dev] [bugs #9345] Zero-Padding on vfprintf

From: Bob Paddock
Subject: Re: [avr-libc-dev] [bugs #9345] Zero-Padding on vfprintf
Date: Tue, 15 Jun 2004 19:16:38 -0400
User-agent: KMail/1.6.2

> Original Submission:  Any zero padding when using %f in vfprintf is removed
> as soon as any precision is used.

Leading zero making C's octal rules kicking in?

> double x = 12.34;
> %10f gives result: 012.340000
> %08.2f gives result: 12.34 (Space padded)
> The latter output should be:
> 00012.34

reply via email to

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