as we know and explained here The oracle ROUND
function will round number
up or down and i can choose how many digits after the , i want to use, but
I saw a function that has a ROUND
as below
Example:
select round(125.11,-1) from dual;
what the minus one means ?? what it dose here ????
As per the documentation:
So:
round(n, 0)
roundsn
to the nearest unitround(n, 1)
roundsn
to the nearest tenthround(n, -1)
roundsn
to the nearest tenround(n, 2)
roundsn
to the nearest hundredthround(n, -2)
roundsn
to the nearest hundredetc