Arithmetic operators
Operators
Translation for Arithmetic Operators
Conversion Table
Sample Source Patterns
Addition, Subtraction, Positive & Negative
Input Code:
100.50
-100.50
97.50
2024-12-02 10:30:00.000000
2024-12-01 09:30:00.000000
Basic testType A
250.75
-250.75
243.75
2024-12-03 15:45:00.000000
2024-12-02 14:45:00.000000
Complex operationsType B
-50.25
50.25
-53.25
2024-12-04 20:00:00.000000
2024-12-03 19:00:00.000000
Negative base valueType C
0.00
0.00
8.00
2024-12-05 09:15:00.000000
2024-12-04 08:15:00.000000
Zero base valueType D
Output Code:
2024-12-02 10:30:00
2024-12-01 09:30:00
Basic testType A
2024-12-03 15:45:00
2024-12-02 14:45:00
Complex operationsType B
2024-12-04 20:00:00
2024-12-03 19:00:00
Negative base valueType C
2024-12-05 09:15:00
2024-12-04 08:15:00
Zero base valueType D
Exponentiation, multiplication, division & modulo
Input Code:
Output Code:
Absolute value, Square root and Cube root
Input Code:
Output Code:
Known Issues
In Snowflake, it is possible to use the unary operators
+and-with string values, however in Redshift it is not valid.
Related EWIs
No related EWIs.
Last updated
