So, if I'm reading this correctly, what you mean is that you want to limit the number of digits after the decimal point, rather than limiting the number of total significant digits shown? If so, this reference document will explain how to use the setf() method to achieve this: