How to round in bigquery -


how round 0.2356 0.23 in google bigquery?

remember round returns float, hence has 2 parameters , in 2nd parameter able define decimals want returned. others ceil, floor return integer, hence no second parameter, can mimic decimals using math.

select floor(0.2356*100)/100 

Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -