def get_rounded ( self , digits ) : result = self . copy ( ) result . round ( digits ) return result
python set (round function to 4 significant numbers
Return a vector with the elements rounded to the given number of digits .
def get_rounded(self, digits):
        """ Return a vector with the elements rounded to the given number of digits. """
        result = self.copy()
        result.round(digits)
        return result