'Get the float value of an option, if it exists.'

def get_float_value(self, section, option, default=0.0):

    try:
        return self.parser.getfloat(section, option)
    except NoOptionError:
        return float(default)
