(self, key, default=None)
Reads float value, if not set then default.
Reads float value, if not set then default.
Reads float value if not set then default .
def getfloat(self, key, default=None):
        """Reads float value, if not set then default."""
        try:
            return self.cf.getfloat(self.main_section, key)
        except ConfigParser.NoOptionError:
            if default == None:
                raise Exception("Config value not set: " + key)
            return default
def getfloat ( self , key , default = None ) : try : return self . cf . getfloat ( self . main_section , key ) except ConfigParser . NoOptionError : if default == None : raise Exception ( "Config value not set: " + key ) return default