---
name: "BIS_fnc_smoothStep"
type: function
status: ok
groups: ["Interpolation"]
arma3_since: "1.76"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_smoothStep
revid: 329343
updated: 2022-07-27T10:50:10Z
---

# BIS_fnc_smoothStep

*Function · Interpolation · Arma 3 v1.76*

## Description

Interpolates between 0 and 1 with smoothing at the limits. Formula is `n2 × (3 - 2n)`.

## Syntax

```sqf
number call BIS_fnc_smoothStep
```

**Parameters:**

- `number`: [Number](../topics/Number.md) - a number in range 0..1. A value not in range will be [floored](../commands/floor.md) to 0 or [ceiled](../commands/ceil.md) to 1

**Returns:** [Number](../topics/Number.md) - interpolation result

## Examples

### Example 1

```sqf
private _smoothedStep = 0.75 call BIS_fnc_smoothStep;
```

### Example 2

```sqf
[0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0] apply { _x call BIS_fnc_smoothStep; };
// returns [0, 0.028, 0.104, 0.216, 0.352, 0.5, 0.648, 0.784, 0.896, 0.972, 1]
```

## See also

[BIS_fnc_lerp](../functions/BIS_fnc_lerp.md)

<sub>Source: [BI Community Wiki — BIS fnc smoothStep](https://community.bistudio.com/wiki/BIS_fnc_smoothStep) (revision 329343).</sub>
