2022-12-30 00:46:50 -05:00
|
|
|
# div
|
2022-12-26 23:11:48 -05:00
|
|
|
|
|
|
|
Divide two numbers.
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2022-12-30 00:46:50 -05:00
|
|
|
* a (`integer`, `float`, `double`) - The number to divide.
|
|
|
|
* b (`integer`, `float`, `double`) - The number to divide by.
|
2022-12-26 23:11:48 -05:00
|
|
|
|
|
|
|
## Return
|
|
|
|
|
|
|
|
(`integer`, `float`, `double`) - The result of the division.
|
|
|
|
|
|
|
|
## Exceptions
|
|
|
|
|
|
|
|
* `EvaluationException` - If there was an error while evaluating one or more parameters.
|
|
|
|
* `TypeException` - If one or more parameters are not of the expected type.
|
|
|
|
* `ZeroDivisionException` - If the divisor is zero.
|
|
|
|
|
|
|
|
## Instruction Example
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-12-30 00:46:50 -05:00
|
|
|
"type": "div",
|
2022-12-26 23:11:48 -05:00
|
|
|
"_": {
|
|
|
|
"a": 10,
|
|
|
|
"b": 2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Last Updated
|
|
|
|
|
2022-12-30 00:46:50 -05:00
|
|
|
Monday, December 30th, 2022.
|
2022-12-26 23:11:48 -05:00
|
|
|
Written by [Netkas](https://git.n64.cc/netkas)
|