# calculator Icon

> The calculator icon from Heroicons as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Heroicons](https://composables.com/icons/icon-libraries/heroicons.md)
- License: MIT (full text in the [Heroicons library page](https://composables.com/icons/icon-libraries/heroicons.md))
- Styles: [Outline](https://composables.com/icons/icon-libraries/heroicons/calculator.md?v=outline), [Solid](https://composables.com/icons/icon-libraries/heroicons/calculator.md?v=solid), [Mini](https://composables.com/icons/icon-libraries/heroicons/calculator.md?v=mini), [Micro](https://composables.com/icons/icon-libraries/heroicons/calculator.md?v=micro)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/calculator.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val HeroiconsCalculator: ImageVector
    get() {
        if (_HeroiconsCalculator != null) return _HeroiconsCalculator!!
        
        _HeroiconsCalculator = ImageVector.Builder(
            name = "calculator",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 1.5f,
                strokeLineJoin = StrokeJoin.Miter
            ) {
                moveTo(15.75f, 15.75f)
                verticalLineTo(18f)
                moveToRelative(-7.5f, -6.75f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineTo(8.25f)
                verticalLineToRelative(-0.008f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineTo(8.25f)
                verticalLineTo(13.5f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineTo(8.25f)
                verticalLineToRelative(-0.008f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineTo(8.25f)
                verticalLineTo(18f)
                close()
                moveToRelative(2.498f, -6.75f)
                horizontalLineToRelative(0.007f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.007f)
                verticalLineToRelative(-0.008f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.007f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.007f)
                verticalLineTo(13.5f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.007f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.007f)
                verticalLineToRelative(-0.008f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.007f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.007f)
                verticalLineTo(18f)
                close()
                moveToRelative(2.504f, -6.75f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.008f)
                verticalLineToRelative(-0.008f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.008f)
                verticalLineTo(13.5f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.008f)
                verticalLineToRelative(-0.008f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.008f)
                verticalLineTo(18f)
                close()
                moveToRelative(2.498f, -6.75f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.008f)
                verticalLineToRelative(-0.008f)
                close()
                moveToRelative(0f, 2.25f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineToRelative(-0.008f)
                verticalLineTo(13.5f)
                close()
                moveTo(8.25f, 6f)
                horizontalLineToRelative(7.5f)
                verticalLineToRelative(2.25f)
                horizontalLineToRelative(-7.5f)
                verticalLineTo(6f)
                close()
                moveTo(12f, 2.25f)
                curveToRelative(-1.892f, 0f, -3.758f, 0.11f, -5.593f, 0.322f)
                curveTo(5.307f, 2.7f, 4.5f, 3.65f, 4.5f, 4.757f)
                verticalLineTo(19.5f)
                arcToRelative(2.25f, 2.25f, 0f, false, false, 2.25f, 2.25f)
                horizontalLineToRelative(10.5f)
                arcToRelative(2.25f, 2.25f, 0f, false, false, 2.25f, -2.25f)
                verticalLineTo(4.757f)
                curveToRelative(0f, -1.108f, -0.806f, -2.057f, -1.907f, -2.185f)
                arcTo(48.507f, 48.507f, 0f, false, false, 12f, 2.25f)
                close()
            }
        }.build()
        
        return _HeroiconsCalculator!!
    }

private var _HeroiconsCalculator: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/calculator.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:strokeColor="@android:color/black"
        android:strokeWidth="1.5"
        android:pathData="M15.75,15.75V18m-7.5,-6.75h0.008v0.008H8.25v-0.008Zm0,2.25h0.008v0.008H8.25V13.5Zm0,2.25h0.008v0.008H8.25v-0.008Zm0,2.25h0.008v0.008H8.25V18Zm2.498,-6.75h0.007v0.008h-0.007v-0.008Zm0,2.25h0.007v0.008h-0.007V13.5Zm0,2.25h0.007v0.008h-0.007v-0.008Zm0,2.25h0.007v0.008h-0.007V18Zm2.504,-6.75h0.008v0.008h-0.008v-0.008Zm0,2.25h0.008v0.008h-0.008V13.5Zm0,2.25h0.008v0.008h-0.008v-0.008Zm0,2.25h0.008v0.008h-0.008V18Zm2.498,-6.75h0.008v0.008h-0.008v-0.008Zm0,2.25h0.008v0.008h-0.008V13.5ZM8.25,6h7.5v2.25h-7.5V6ZM12,2.25c-1.892,0 -3.758,0.11 -5.593,0.322C5.307,2.7 4.5,3.65 4.5,4.757V19.5a2.25,2.25 0 0,0 2.25,2.25h10.5a2.25,2.25 0 0,0 2.25,-2.25V4.757c0,-1.108 -0.806,-2.057 -1.907,-2.185A48.507,48.507 0 0,0 12,2.25Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/calculator.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 15.75V18m-7.5-6.75h.008v.008H8.25v-.008Zm0 2.25h.008v.008H8.25V13.5Zm0 2.25h.008v.008H8.25v-.008Zm0 2.25h.008v.008H8.25V18Zm2.498-6.75h.007v.008h-.007v-.008Zm0 2.25h.007v.008h-.007V13.5Zm0 2.25h.007v.008h-.007v-.008Zm0 2.25h.007v.008h-.007V18Zm2.504-6.75h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V13.5Zm0 2.25h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V18Zm2.498-6.75h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V13.5ZM8.25 6h7.5v2.25h-7.5V6ZM12 2.25c-1.892 0-3.758.11-5.593.322C5.307 2.7 4.5 3.65 4.5 4.757V19.5a2.25 2.25 0 0 0 2.25 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25V4.757c0-1.108-.806-2.057-1.907-2.185A48.507 48.507 0 0 0 12 2.25Z"/></svg>
```
