mini.go
func (config *Config) FloatFromSection(sectionName string, key string, def float64) float64 {
	section := config.sectionForName(sectionName)

	if section != nil {
		return getFloat(section.values, key, def)
	}

	return def
}
func (config *Config) FloatFromSection(sectionName string, key string, def float64) float64 {
	section := config.sectionForName(sectionName)

	if section != nil {
		return getFloat(section.values, key, def)
	}

	return def
}
/*
FloatFromSection looks for the specified key and returns it as a float. If not found the default value def is returned.

If the section name matches the config.name or "" the global data is searched.
*/