Changing decimal precision in fit box

Hi, is there a way to change the decimal precision in TPaveStats box with two different precisions for the value of a parameter and its error? I know about SetFitFormat, and using that i now have something like “0.74 +/- 0.078”, but I’d want “0.74 +/- 0.08”.


The same format is used for both the value and the error. As can be seen here on line 8653

The fit format is like a printf format string, so have you tried something like 1.2, that is, one digit before the dot and two digits after:

printf("%1.2f pm %1.2f", 0.12345, 0.01234)
0.12 pm 0.01

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.