Apache Presto - Math Function truncate(x)


Query

presto:default> select truncate(5.9) as truncate_value; 

Result

 truncate_value 
---------------- 
     5.0 

Here, the result is truncated.

apache_presto_sql_functions.htm
Advertisements