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

### Extensions for kotlin.Float

| Name | Summary |
|---|---|
| [dpToPx](dp-to-px.md) | `fun `[`Float`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`.dpToPx(displayMetrics: <ERROR CLASS>): <ERROR CLASS>`<br>Converts a value in density independent pixels (dp) to a px value. |
| [spToPx](sp-to-px.md) | `fun `[`Float`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`.spToPx(displayMetrics: <ERROR CLASS>): <ERROR CLASS>`<br>Converts a value in scale independent pixels (sp) to a px value. |
