code: func ConvertFloatToInt(fval float64, lowerBound, upperBound int64, tp byte) (int64, error) {
  	val := RoundFloat(fval)
  	if val < float64(lowerBound) {
  		return lowerBound, overflow(val, tp)
  	}
  
  	if val >= float64(upperBound) {
  		if val == float64(upperBound) {
  			return upperBound, nil
  		}
  		return upperBound, overflow(val, tp)
  	}
  	return int64(val), nil
  }
docs: // ConvertFloatToInt converts a float64 value to a int value.