package androidx.compose.ui.geometry; import kotlin.Metadata; /* compiled from: GeometryUtils.kt */ @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u000e\n\u0002\u0010\u0007\n\u0000\n\u0002\u0010\b\n\u0000\u001a\u0014\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0000ยจ\u0006\u0005"}, d2 = {"toStringAsFixed", "", "", "digits", "", "ui-geometry_release"}, k = 2, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public final class GeometryUtilsKt { public static final String toStringAsFixed(float f, int i) { int max = Math.max(i, 0); float pow = (float) Math.pow(10.0f, max); float f2 = f * pow; int i2 = (int) f2; if (f2 - i2 >= 0.5f) { i2++; } float f3 = i2 / pow; if (max > 0) { return String.valueOf(f3); } return String.valueOf((int) f3); } }