code: func resultErrorFormatNumber(n float64) string {
  
  	if isFloat64AnInteger(n) {
  		return fmt.Sprintf("%d", int64(n))
  	}
  
  	return fmt.Sprintf("%g", n)
  }
docs: // formats a number so that it is displayed as the smallest string possible