code: func RoundFloat(f float64) float64 {
  	if math.Abs(f) < 0.5 {
  		return 0
  	}
  
  	return math.Trunc(f + math.Copysign(0.5, f))
  }
docs: // RoundFloat rounds float val to the nearest integer value with float64 format, like MySQL Round function.
  // RoundFloat uses default rounding mode, see https://dev.mysql.com/doc/refman/5.7/en/precision-math-rounding.html
  // so rounding use "round half away from zero".
  // e.g, 1.5 -> 2, -1.5 -> -2.