format a measurement result and its error in "scientific" way

Daniel Fetchinson fetchinson at
Fri Feb 17 11:03:42 CET 2012

>> Hi folks, often times in science one expresses a value (say
>> 1.03789291) and its error (say 0.00089) in a short way by parentheses
>> like so: 1.0379(9)
> Before swallowing any Python solution, you should
> realize, the values (value, error) you are using are
> a non sense :
> 1.03789291 +/- 0.00089
> You express "more precision" in the value than
> in the error.

My impression is that you didn't understand the original problem:
given an arbitrary value to arbitrary digits and an arbitrary error,
find the relevant number of digits for the value that makes sense for
the given error. So what you call "non sense" is part of the problem
to be solved.


Psss, psss, put it down! -

More information about the Python-list mailing list