Re: printf *%f

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

 



On Wed, Jan 12, 2011 at 08:39, ratheesh k <ratheesh.ksz@xxxxxxxxx> wrote:
> double x=45.9876 ;
>
> printf("%4.2f" , x); is working fine ... ÂBut printf("%*f , 4.2 , x) ;

printf("%*.*f" , 4, 2 , x) ;

Bert

> behaves odd in my Âfedora 8 pentium machine. any clue ?
>
> Does * Âsubstitute only integers ?
>
>
> -Ratheesh
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux