2022-12-30 00:46:50 -05:00
|
|
|
# sub
|
2022-12-26 23:11:48 -05:00
|
|
|
|
2022-12-30 00:46:50 -05:00
|
|
|
Subtract two numbers.
|
2022-12-26 23:11:48 -05:00
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2022-12-30 00:46:50 -05:00
|
|
|
* a (`integer`, `float`, `double`) - The number to subtract from.
|
|
|
|
* b (`integer`, `float`, `double`) - The number to subtract.
|
2022-12-26 23:11:48 -05:00
|
|
|
|
|
|
|
## Return
|
|
|
|
|
2022-12-30 00:46:50 -05:00
|
|
|
(`integer`, `float`, `double`) - The result of the subtraction.
|
2022-12-26 23:11:48 -05:00
|
|
|
|
|
|
|
## 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.
|
|
|
|
|
|
|
|
## Instruction Example
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-12-30 00:46:50 -05:00
|
|
|
"type": "sub",
|
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)
|