---
title: "coerceAtLeast"
description: "Ensures that this value is not less than the specified [minimumValue]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline fun Dp.coerceAtLeast(minimumValue: Dp): Dp
```


Ensures that this value is not less than the specified `minimumValue`.

#### Returns

| | |
| --- | --- |
|  | this value if it's greater than or equal to the `minimumValue` or the `minimumValue` otherwise. |




