# IntToDoubleFunction

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# IntToDoubleFunction

```
@FunctionalInterface interface IntToDoubleFunction
```

|----------------------------------------------------------------------------------------------------------------------------------|
| [java.util.function.IntToDoubleFunction](https://developer.android.com/reference/kotlin/java/util/function/IntToDoubleFunction#) |

Represents a function that accepts an int-valued argument and produces a double-valued result. This is the`int`-to-`double`primitive specialization for[Function](https://developer.android.com/reference/kotlin/java/util/function/Function).

This is a[functional interface](https://developer.android.com/reference/kotlin/java/util/function/package-summary)whose functional method is[applyAsDouble(int)](https://developer.android.com/reference/kotlin/java/util/function/IntToDoubleFunction#applyAsDouble(kotlin.Int)).

## Summary

|                                                                                                                                                                          Public methods                                                                                                                                                                          ||
|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [applyAsDouble](https://developer.android.com/reference/kotlin/java/util/function/IntToDoubleFunction#applyAsDouble(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Applies this function to the given argument. |

## Public methods

### applyAsDouble

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun applyAsDouble(value: Int): Double
```

Applies this function to the given argument.

|                                                Parameters                                                 ||
|---------|--------------------------------------------------------------------------------------------------|
| `value` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the function argument |

|                                                Return                                                 ||
|----------------------------------------------------------------------------------|---------------------|
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | the function result |