---
name: "a / b"
type: command
operator: "/"
status: ok
groups: ["Math", "Config"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/a_/_b
revid: 363979
updated: 2024-04-29T22:53:36Z
---

# a / b

*Command · Math, Config · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

## Description

Returns the quotient of two numbers. If the divisor is 0 a *Division by zero* error is shown but the script does not stop and the result of such division is assumed to be 0.

Alternative syntax returns the [Config](../topics/Config.md) entry with the given name (alias for [>>](../commands/config_greater_greater_name.md), slightly slower but with [higher precedence](../topics/Operators.md#order-of-precedence)).

## Syntax

### Syntax 1

```sqf
a / b
```

**Parameters:**

- `a`: [Number](../topics/Number.md) - dividend
- `b`: [Number](../topics/Number.md) - divisor

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

### Syntax 2

*since arma1 1.00*

```sqf
config / name
```

**Parameters:**

- `config`: [Config](../topics/Config.md)
- `name`: [String](../topics/String.md)

### Syntax 3

**Returns:** [Config](../topics/Config.md) - config entry

## Examples

### Example 1

```sqf
_result = 15 / 3; // result is 5
```

### Example 2

```sqf
_cfgVehicles = configFile / "CfgVehicles"; // identical to configFile >> "CfgVehicles" (but the order of precedence)
```

## See also

[Operators](../topics/Operators.md) · [configFile](../commands/configFile.md) · [missionConfigFile](../commands/missionConfigFile.md) · [campaignConfigFile](../commands/campaignConfigFile.md) · [configName](../commands/configName.md) · [config greater greater name](../commands/config_greater_greater_name.md) · [count](../commands/count.md)

## Community notes

**ffur2007slx2_5** — 2014-04-01

(Arma 3 1.14) config / name can be composed to config >> name [String](../topics/String.md) or [Array](../topics/Array.md) format via [BIS_fnc_configPath](../functions/BIS_fnc_configPath.md). E.g.

```sqf
[configFile / "ATMineCrater" / "MissileCircleDust", ""] call BIS_fnc_configPath; // return: "configfile >> "ATMineCrater" >> "MissileCircleDust""
[configFile / "ATMineCrater" / "MissileCircleDust", []] call BIS_fnc_configPath; // return: ["configfile","ATMineCrater","MissileCircleDust"]
```

<sub>Source: [BI Community Wiki — a / b](https://community.bistudio.com/wiki/a_/_b) (revision 363979).</sub>
