Round the number

Report
Question

Please briefly explain why you feel this question should be reported .

Report
Cancel
How answer is 30?

ROUND(34.4158,-1)
-----------------
               30
in progress 0
Oracle 6 months 1 Answer 1840 views 0

Answer ( 1 )

  1. ritwik

    Please briefly explain why you feel this answer should be reported .

    Report
    Cancel

    Because passing -1 as second argument rounds a number one digit to the left of the decimal point. So 34 is rounded to 30. If it is 35, it would be rounded to 40.

Leave an answer

Browse

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>