// resolveFloat will resolve a float64 to one of the 2 compatible types.
resolveFloat will resolve a float64 to one of the 2 compatible types.
// resolveFloat will resolve a float64 to one of the 2 compatible types .
func (m MetricType) resolveFloat(val interface{}) interface{} {
	_, isFloat64 := val.(float64)
	if isFloat64 && m == FloatType {
		return float32(val.(float64))
	}
	return val
}
func ( m MetricType ) resolveFloat ( val interface { } ) interface { } { _ , isFloat64 := val . ( float64 ) if isFloat64 && m == FloatType { return float32 ( val . ( float64 ) ) } return val }
resolveFloat will resolve a float64 to one of the 2 compatible types.
resolveFloat will resolve a float64 to one of the 2 compatible types .