code: def format_number(
          x, use_rounding=True, is_population=False, coefficient=1):
      
      if use_rounding:
          x = rounding(x, is_population)
  
      x //= coefficient
  
      number = add_separators(x)
      return number
docs: Format a number according to the standards.
  
      :param x: A number to be formatted in a locale friendly way.
      :type x: int
  
      :param use_rounding: Flag to enable a rounding.
      :type use_rounding: bool
  
      :param is_population: Flag if the number is population. It needs to be
          used with enable_rounding.
      :type is_population: bool
  
      :param coefficient: Divide the result after the rounding.
      :type coefficient:float
  
      :returns: A locale friendly formatted string e.g. 1,000,0000.00
          representing the original x. If a ValueError exception occurs,
          x is simply returned.
      :rtype: basestring