parameters: (self, digits=-1)
docstring: Sets the number of digits to show.
  
          :param `digits`: the number of digits to show. If `digits` < 0, :class:`FloatSpin`
           tries to calculate the best number of digits based on input values passed
           in the constructor.
docstring_summary: Sets the number of digits to show.
docstring_tokens: Sets the number of digits to show .
function: def SetDigits(self, digits=-1):
          """
          Sets the number of digits to show.
  
          :param `digits`: the number of digits to show. If `digits` < 0, :class:`FloatSpin`
           tries to calculate the best number of digits based on input values passed
           in the constructor.
          """
  
          if digits < 0:
              incr = str(self._increment)
              if incr.find(".") < 0:
                  digits = 0
              else:
                  digits = len(incr[incr.find(".")+1:])
  
          self._digits = digits
  
          self.SetValue(self._value)
function_tokens: def SetDigits ( self , digits = - 1 ) : if digits < 0 : incr = str ( self . _increment ) if incr . find ( "." ) < 0 : digits = 0 else : digits = len ( incr [ incr . find ( "." ) + 1 : ] ) self . _digits = digits self . SetValue ( self . _value )