---
name: "BIS_fnc_linearConversion"
type: function
status: deprecated
replaced_by: ["linearConversion"]
groups: ["Math"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_linearConversion
revid: 341218
updated: 2023-05-13T23:07:03Z
---

# BIS_fnc_linearConversion

*Function · Math · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.50*

> [!WARNING]
> This function is deprecated. Use [linearConversion](../commands/linearConversion.md) instead.

## Description

Linear conversion of a value from one set to another

> [!NOTE]
> This function became obsolete with the introduction of [linearConversion](../commands/linearConversion.md).

## Syntax

```sqf
[[minFrom, maxFrom], value, [minTo, maxTo]] call BIS_fnc_linearConversion
```

**Parameters:**

- `minFrom`: [Number](../topics/Number.md)
- `maxFrom`: [Number](../topics/Number.md)
- `value`: [Number](../topics/Number.md)
- `minTo`: [Number](../topics/Number.md)
- `maxTo`: [Number](../topics/Number.md)

**Returns:** [Number](../topics/Number.md) *value* adapted to [*minTo*, *maxTo*] range

## Examples

### Example 1

```sqf
[[-50, 50], -50, [0, 1]] call BIS_fnc_linearConversion; // returns 0
[[-50, 50],   0, [0, 1]] call BIS_fnc_linearConversion; // returns 0.5
[[-50, 50], +50, [0, 1]] call BIS_fnc_linearConversion; // returns 1
```

## See also

[linearConversion](../commands/linearConversion.md)

<sub>Source: [BI Community Wiki — BIS fnc linearConversion](https://community.bistudio.com/wiki/BIS_fnc_linearConversion) (revision 341218).</sub>
