UNARY_PLUS()
All functions > MATH > UNARY_PLUS()
Explicit unary plus on an expression (no-op on the value).
Signatures
Returns: Same type as the operand
UNARY_PLUS(expr: T) → T sql
| Parameter | Type | Required | Description |
|---|---|---|---|
expr | T | Yes | Operand |
With:
T: Any numeric type
Notes
- Written in FeatureQL as a leading
+before an expression (for example+ROW_NUMBER). - NULL in, NULL out.
Examples
FeatureQL
SELECT
f1 := UNARY_PLUS(3), -- Function call form
f2 := +3 -- Operator form on integer literal
;Result
| f1 BIGINT | f2 BIGINT |
|---|---|
| 3 | 3 |
On this page