Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, mahesh.

Asked: November 25, 2016 - 6:11 am UTC

Last updated: November 25, 2016 - 7:31 am UTC

Version: 10.1.2

Viewed 1000+ times

You Asked

how to round 122.41 value to 122.40.
thank you.

and Connor said...

SQL> select round(122.41,1) from dual;

ROUND(122.41,1)
---------------
          122.4


The second argument to ROUND is how many decimal places.

1,2,3, = 1,2,3 decimal places
-1 = round to the tens
-2 = round to the hundreds

etc


Is this answer out of date? If it is, please let us know via a Comment