code: func (h *Histogram) RecordIntScales(val int64, scale int, n int64) error {
  	sign := int64(1)
  	if val == 0 {
  		scale = 0
  	} else {
  		scale++
  		if val < 0 {
  			val = 0 - val
  			sign = -1
  		}
  		if val < 10 {
  			val *= 10
  			scale -= 1
  		}
  		for val >= 100 {
  			val /= 10
  			scale++
  		}
  	}
  	if scale < -128 {
  		val = 0
  		scale = 0
  	} else if scale > 127 {
  		val = 0xff
  		scale = 0
  	}
  	val *= sign
  	hb := bin{val: int8(val), exp: int8(scale), count: 0}
  	h.insertBin(&hb, n)
  	return nil
  }
docs: // RecordIntScales records n occurrences of the given value, returning an error if
  // the value is out of range.