Dear experts,
I used TH2D::Draw(“text”), but how can I round the value to two numbers after the dot (ex: 2.36 instead of 2.365789)?
Regards
Hi,
before drawing your histogram, you should do
gStyle->SetPaintTextFormat(".2f");
Dear Yus,
Ok, thank you for your answer.
Regards
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.