def convert_seconds(seconds: float) -> str:
    """
    Convert time in seconds to days:hours:minutes:seconds.milliseconds
    with leading 0s removed.

    Parameters
    ----------
    seconds : float
        Number of seconds to be converted.

    Returns
    -------
    str
        Converted time.
    """
    mS = int((seconds) * 1000)
    D, mS = divmod(mS, 86400000)
    H, mS = divmod(mS, 3600000)
    M, mS = divmod(mS, 60000)
    S, mS = divmod(mS, 1000)
    H = str(H).zfill(2)
    M = str(M).zfill(2)
    S = str(S).zfill(2)
    mS = str(mS).zfill(3)
    time = f'{D}:{H}:{M}:{S}.{mS}'.lstrip('0:')
    if time.startswith('.'):
        time = '0' + time
    return time