package com.google.android.gms.internal.ads; import com.facebook.internal.security.CertificateUtil; /* loaded from: classes3.dex */ public final class zzalx { public static float zza(String str) throws NumberFormatException { if (str.endsWith("%")) { return Float.parseFloat(str.substring(0, str.length() - 1)) / 100.0f; } throw new NumberFormatException("Percentages must end with %"); } public static long zzb(String str) throws NumberFormatException { int i = zzei.zza; String[] split = str.split("\\.", 2); long j = 0; for (String str2 : split[0].split(CertificateUtil.DELIMITER, -1)) { j = (j * 60) + Long.parseLong(str2); } long j2 = j * 1000; if (split.length == 2) { j2 += Long.parseLong(split[1]); } return j2 * 1000; } }