def sizeof_fmt(mem_usage: float, suffix: str = 'B') -> str:
    """
    Returns the memory usage calculation of the last function.

    Parameters
    ----------
    mem_usage : float
        memory usage in bytes

    suffix: string, optional
        suffix of the unit, by default 'B'

    Returns
    -------
    str
        A string of the memory usage in a more readable format
    Examples
    --------
    >>> from pymove.utils.mem import sizeof_fmt
    >>> sizeof_fmt(1024)
    1.0 KiB
    >>> sizeof_fmt(2e6)
    1.9 MiB
    """
    for unit in ['', 'Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi']:
        if abs(mem_usage) < 1024.0:
            return f'{mem_usage:3.1f} {unit}{suffix}'
        mem_usage /= 1024.0
    return '{:.1f} {}{}'.format(mem_usage, 'Yi', suffix)