← unary_minus operator page · numeric/unary_minus/sc/negative_operand
pandas ✅ · DuckDB ✅
- on a negative scalar: -SC_1 with SC_1 = -5.
Unary minus: "-(-5) gives 5".
SC_r = 5, an Integer: "If the type of the operand is integer then the result has type integer."
SC_r := -SC_1;
| SC_1 |
|---|
| -5 |
{
"scalars": [
{"name": "SC_1", "type": "Integer"}
]
}
{
"scalars": [
{
"name": "SC_r",
"type": "Integer",
"value": "5"
}
]
}