Skip to main content

Math functions

subtract

Commentary

added in 0.0.17

Generates the substraction of args. You can also use this function through an infix math expression.


Examples

Subtracting numbers

{
"_gen": "subtract",
"args": [
5,
3
]
}
[
2
]

Specification

JSON schema

{
"type": "object",
"properties": {
"args": {
"oneOf": [
{
"type": "array",
"minItems": 1
},
{
"type": "object",
"properties": {
"_gen": {
"type": "string"
}
},
"required": [
"_gen"
]
}
]
}
},
"required": [
"args"
]
}