[android-components](../../index.md) / [mozilla.components.support.ktx.android.util](../index.md) / [kotlin.Int](./index.md)

### Extensions for kotlin.Int

| Name | Summary |
|---|---|
| [dpToFloat](dp-to-float.md) | `fun `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`.dpToFloat(displayMetrics: <ERROR CLASS>): <ERROR CLASS>`<br>Converts a value in density independent pixels (dp) to a float value. |
| [dpToPx](dp-to-px.md) | `fun `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`.dpToPx(displayMetrics: <ERROR CLASS>): <ERROR CLASS>`<br>Converts a value in density independent pixels (dp) to the actual pixel values for the display. |
