def float2String(input, ndigits=0):
    """
    Round and converts the input, if int/float or list of, to a string.

    Parameters
    ----------
    input: int/float or list of int/float
    ndigits: int
        number of decimals to round to

    Returns
    -------
    output: string or list of strings
         depending on the input
    """

    output = input
    if not isinstance(input, list):
        output = [output]
    output = [round(x, ndigits) for x in output]
    output = list(map(int, output))
    output = list(map(str, output))
    if not isinstance(input, list):
        output = output[0]
    return output