def calculate_packet_loss_values(dropped_packets_rate, total_packets_rate):
    """ Calculate the packet loss (percentage)

    Args:
        dropped_packets_rate (float): The rate of dropped packets (packets/sec)
        total_packets_rate (float): The rate of total packets (packets/sec)

    Returns:
        float: The packet loss. Value range: [0 - 100]. Unit is %.
    """
    if float(total_packets_rate) == 0.0:
        return 0.0
    return float(dropped_packets_rate) * 100 / float(total_packets_rate)