# RoundingUtils

Added in 1.0.0-alpha06

*** ** * ** ***


```
public final class RoundingUtils
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/helper/RoundingUtils#(kotlin.Int).roundDownToNearestMultipleOf(kotlin.Int)(int receiver, int boundary)` |
| `static final long` | `https://developer.android.com/reference/androidx/webgpu/helper/RoundingUtils#(kotlin.Long).roundDownToNearestMultipleOf(kotlin.Int)(long receiver, int boundary)` Helpers for image dimension management. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/helper/RoundingUtils#(kotlin.Int).roundUpToNearestMultipleOf(kotlin.Int)(int receiver, int boundary)` |
| `static final long` | `https://developer.android.com/reference/androidx/webgpu/helper/RoundingUtils#(kotlin.Long).roundUpToNearestMultipleOf(kotlin.Int)(long receiver, int boundary)` |

## Public methods

### roundDownToNearestMultipleOf

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/helper/Rounding.kt+function:roundDownToNearestMultipleOf) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public static final int roundDownToNearestMultipleOf(int receiver, int boundary)
```

### roundDownToNearestMultipleOf

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/helper/Rounding.kt+function:roundDownToNearestMultipleOf) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public static final long roundDownToNearestMultipleOf(long receiver, int boundary)
```

Helpers for image dimension management. Each adds a method to round to the next higher or lower multiple of a value, e.g., "round -1,234 down to the nearest multiple of 1,000" returns -2000.

### roundUpToNearestMultipleOf

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/helper/Rounding.kt+function:roundUpToNearestMultipleOf) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public static final int roundUpToNearestMultipleOf(int receiver, int boundary)
```

### roundUpToNearestMultipleOf

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/helper/Rounding.kt+function:roundUpToNearestMultipleOf) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public static final long roundUpToNearestMultipleOf(long receiver, int boundary)
```