Scientific notation

Hi all,
I have a question about the scientific notation.
I wrote a program and i obtained the result a number like this:

now I want to put on the graphics and I wrote:

TPaveText *pt = new TPaveText(0.15,0.7,0.30,0.85,"brNDC"); char text1[100]; sprintf(text1,"k = %f", max_k); char text2[100]; sprintf(text2,"#sigma = %f", sigma); pt->AddText(text1); pt->AddText(text2); pt->Draw();

but I obtain only zero: 0.00000
Do you have any ideas?
Thank you
Ciccio

Use ā€œ%gā€ instead of ā€œ%fā€

Rene

Hi,
it is perfect!
Thank you very much.
Ciccio