code: func (qfd *quantizedFloatDecoder) quantize(val float32) float32 {
  	if val < qfd.Low {
  		if (qfd.Flags & qff_roundup) == 0 {
  			_panicf("Field tried to quantize an out of range value")
  		}
  
  		return qfd.Low
  	} else if val > qfd.High {
  		if (qfd.Flags & qff_rounddown) == 0 {
  			_panicf("Field tried to quantize an out of range value")
  		}
  
  		return qfd.High
  	}
  
  	i := uint32((val - qfd.Low) * qfd.HighLowMul)
  	return qfd.Low + (qfd.High-qfd.Low)*(float32(i)*qfd.DecMul)
  }
docs: // Quantize a float