Apache Presto - Math Function abs(x)


Query

presto:default> select abs(4.65) as absolute;

Result

 absolute 
---------- 
   4.65

Here, the absolute value is returned for the given value.

apache_presto_sql_functions.htm
Advertisements