def _clean_version(version):
    """
    Convert version to string and append decimal if appropriate and missing

    :param version: NPPES API version
    :type version: int/str
    :return: The cleaned version
    :rtype: str
    """
    version = str(version)
    if version in ("1", "2"):
        version += ".0"
    return version