Arithmetic operators
Operators
Conversion Table
Redshift
Snowflake
Comments
Sample Source Patterns
Addition, Subtraction, Positive & Negative
Input Code:
positive_value
negative_value
add_sub_result
next_day
one_hour_before
string_sum
int_string_sum
string_int_sum
105.5
105.5
255.75
255.75
-45.25
-45.25
5
5
positive_value
negative_value
add_sub_result
next_day
one_hour_before
string_sum
int_string_sum
string_int_sum
100.5
-100.5
97.5
105.5
105.5
250.75
-250.75
243.75
255.75
255.75
-50.25
50.25
-53.25
-45.25
-45.25
0
0
8
5
5
Exponentiation, multiplication, division & modulo
Input Code:
raised_to_exponent
multiplied_value
divided_value
int_division
modulo_result
add_sub_result
controlled_eval
10100.25
201
20.1
20
1
97.5
104.5
15766047.296875
752.25
25.075
25
1
243.75
259.75
6375940.62890625
-251.25
-6.28125
-6
0
-53.25
-30.25
0
0
0
0
1
8
10
Output Code:
raised_to_exponent
multiplied_value
divided_value
int_division
modulo_result
add_sub_result
controlled_eval
10100.25
201
20.1
20
1
97.5
104.5
15766047.2969
752.25
25.075
25
1
243.75
259.75
6375940.6289
-251.25
-6.2812
-7
0
-53.25
-30.25
0
0
0
0
1
8
10
Absolute value, Square root and Cube root
Input Code:
Output Code:
Known Issues
Related EWIs
Last updated
