Friday 30 September 2022

Hive: negative: Negate the number

Signature

negative(n)

Return -n.

 

hive> SELECT negative(-10);
OK
_c0
10
Time taken: 0.053 seconds, Fetched: 1 row(s)
hive> ;
hive> ;
hive> SELECT negative(10);
OK
_c0
-10
Time taken: 0.039 seconds, Fetched: 1 row(s)

 

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment