How do I put a % sign in a printf, ie
printf("\n %: %.2lf",someVar);


The first % seems to do nothing.

MS

Re: % in printf? by Reginald

Reginald
Wed Aug 13 13:43:05 CDT 2003

Martin Schmid wrote:
> How do I put a % sign in a printf, ie
> printf("\n %: %.2lf",someVar);
>
>
> The first % seems to do nothing.

printf("\n %%: %.2lf",someVar);

--
Reginald Blue
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone."
- Bjarne Stroustrup (originator of C++) [quoted at the 2003
International Conference on Intelligent User Interfaces]