by shigemk2

当面は技術的なことしか書かない

presto round

presto round

round(x,d) round(x)

same as inputって書いてあるから、xの型doubleだと戻り値もdoubleになるし、integerならintegerが帰って来る

presto> select round(22);
 _col0 
-------
    22 
(1 row)
presto> select round(22.5);
 _col0 
-------
  23.0 
(1 row)

https://prestodb.io/docs/current/functions/math.html