← subtraction operator page · numeric/subtraction/sc_sc/negative_result
pandas ✅ · DuckDB ✅
the difference of two integer scalars when it is negative: SC_1 - SC_2 with SC_1 = 3 and SC_2 = 5.
Subtraction: "3 - 5 gives -2".
SC_r = -2, an Integer.
SC_r := SC_1 - SC_2;
| SC_1 | SC_2 |
|---|---|
| 3 | 5 |
{
"scalars": [
{"name": "SC_1", "type": "Integer"},
{"name": "SC_2", "type": "Integer"}
]
}
{
"scalars": [
{
"name": "SC_r",
"type": "Integer",
"value": "-2"
}
]
}