← unary_plus operator page · numeric/unary_plus/sc/negative_operand
pandas ✅ · DuckDB ✅
+ on a negative scalar: +SC_1 with SC_1 = -5.
Unary plus: "+(-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"
}
]
}