I'm performing a little bit of statistics using python, I have this dataset:
test=[0.200,0.220,0.220,0.120,0.330,0.330]
Python automatically convert it in [0.2, 0.22, 0.22, 0.12, 0.33, 0.33] but in fact the zeros are significant figures in my calculation so I would like to keep them in the array. I know that I can import decimal and use Decimal for a single value but how can I keep all trailing zeros in a list or np.array?
Think that you are inserting experimental data using a python script, data are precise until the third figure so I want to keep track that 0.020 means that in the third figure is actually a 0. How can I achieve this task? This is a very important issue for a chemist or an engineer.
I need it because I have to keep track of significant figures for the next calculation... Ideally I have to count the number of significant figure in this case 3 and use it in the next calculation, that is a sort of historgram plotting with the bin width related to the number of significant figures.