Added documentation for arithmetic instructions
This commit is contained in:
parent
933f194726
commit
e11efb01b9
10 changed files with 304 additions and 5 deletions
35
docs/instructions/arithmetic/divide.md
Normal file
35
docs/instructions/arithmetic/divide.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
# div
|
||||
|
||||
Divide two numbers.
|
||||
|
||||
## Parameters
|
||||
|
||||
* a (`integer`, `float`, `double`) - The number to divide.
|
||||
* b (`integer`, `float`, `double`) - The number to divide by.
|
||||
|
||||
## 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
|
||||
{
|
||||
"type": "div",
|
||||
"_": {
|
||||
"a": 10,
|
||||
"b": 2
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Last Updated
|
||||
|
||||
Monday, December 30th, 2022.
|
||||
Written by [Netkas](https://git.n64.cc/netkas)
|
Loading…
Add table
Add a link
Reference in a new issue