Fixed digits number in floats
问题 I read a lot of discussion about this on SE, but still can't find the right one. I want to plot some numbers, of various lengths, with the same number of digits. For example I have: 12.345678 , 1.2345678 . Now, since I have to plot them with their error, I want that each one has a different format, in order that they are significant. So, I want to plot them with a variable number of decimals. In my case, it makes no sense to plot 23.45678+/-1.23456 but better is 23.4+/-1.2 . On the other hand