Skip to content

Commit 6461714

Browse files
Update control-flow-expression-language-functions.md
1 parent 79ad110 commit 6461714

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

articles/data-factory/control-flow-expression-language-functions.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,12 +1398,14 @@ And returns this result: `"https://contoso.com"`
13981398

13991399
### div
14001400

1401-
Return the result of dividing one number by another number. The precise return type of the function depends on the types of its parameters — see examples for detail.
1401+
Return the result of dividing one number by another number.
14021402

14031403
```
14041404
div(<dividend>, <divisor>)
14051405
```
14061406

1407+
The precise return type of the function depends on the types of its parameters &mdash; see examples for detail.
1408+
14071409
| Parameter | Required | Type | Description |
14081410
| --------- | -------- | ---- | ----------- |
14091411
| <*dividend*> | Yes | Integer or Float | The number to divide by the *divisor* |
@@ -1417,19 +1419,25 @@ div(<dividend>, <divisor>)
14171419

14181420
*Example 1*
14191421

1420-
Both examples divide the first number by the second number:
1422+
These examples divide the number 9 by 2:
14211423

14221424
```
1423-
div(10, 5)
1424-
div(11, 5)
1425+
div(9, 2.0)
1426+
div(9.0, 2)
1427+
div(9.0, 2.0)
14251428
```
14261429

1427-
And return this result: `2`
1430+
And all return this result: `4.5`
14281431

14291432
*Example 2*
14301433

1431-
To get the remainder result, see [mod()](#mod).
1434+
This example also divides the number 9 by 2, but integer division (discarding the remainder) is performed because both parameters are integers.
1435+
1436+
```
1437+
div(9, 2)
1438+
```
14321439

1440+
The expression returns the result `4`. To obtain the remainder result, see [mod()](#mod).
14331441

14341442
<a name="encodeUriComponent"></a>
14351443

0 commit comments

Comments
 (0)