def numberSeparators(number, separator=' '):
    """
        Adds a separator every 3 digits in the number.
    """

    if not isinstance(number, str):
        number = str(number)

    # Remove decimal part
    str_number = number.split('.')

    if len(str_number[0]) <= 3:
        str_number[0] = str_number[0]
    else:
        str_number[0] = numberSeparators(str_number[0][:-3]) + separator + str_number[0][-3:]

    # Verify if the var "number" have a decimal part.
    if len(str_number) > 1:
        return str_number[0] + '.' + str_number[1]

    return str_number[0]