Quick C question - how to hide leading zero in printf

Posted by Christian Mann on Stack Overflow See other posts from Stack Overflow or by Christian Mann
Published on 2010-04-07T20:36:33Z Indexed on 2010/04/07 20:53 UTC
Read the original article Hit count: 180

Filed under:
|
|

Hey, if I had this code:

printf( "%8.2f" , .23 );

It outputs 0.23. How do I get it to simply output .23?

Thanks.

© Stack Overflow or respective owner

Related posts about c

    Related posts about printf