---
name: "BIS_fnc_interpolateConstant"
type: function
status: ok
groups: ["Interpolation"]
arma3_since: "1.78"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_interpolateConstant
revid: 349192
updated: 2023-11-08T14:50:40Z
---

# BIS_fnc_interpolateConstant

*Function · Interpolation · Arma 3 v1.78*

## Description

Interpolates scalar to target linearly.

## Syntax

```sqf
[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolateConstant
```

**Parameters:**

- `currentValue`: [Number](../topics/Number.md) - the current value
- `targetValue`: [Number](../topics/Number.md) - the target value
- `delta`: [Number](../topics/Number.md) - (Optional, default 0) the delta time
- `interpSpeed`: [Number](../topics/Number.md) - (Optional, default 0) the interpolation speed

**Returns:** [Number](../topics/Number.md) - the interpolated value

## Examples

### Example 1

```sqf
private _value = [4,8,0.2,0.1] call BIS_fnc_interpolateConstant;
```

## See also

[BIS_fnc_interpolate](../functions/BIS_fnc_interpolate.md) · [BIS_fnc_interpolateVector](../functions/BIS_fnc_interpolateVector.md) · [BIS_fnc_interpolateVectorConstant](../functions/BIS_fnc_interpolateVectorConstant.md)

<sub>Source: [BI Community Wiki — BIS fnc interpolateConstant](https://community.bistudio.com/wiki/BIS_fnc_interpolateConstant) (revision 349192).</sub>
