O'Reilly logo

OCA Oracle Database 11g: SQL Fundamentals I: A Real-World Certification Guide by Steve Ries

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using arithmetic functions

Just as with the string and date functions, we have an entire set of functions that deals strictly with numeric values and arithmetic operations. We will look at a few of the more common examples here, but there are many different functions you can call in order to manipulate numbers in Oracle.

ROUND()

The ROUND() function is straightforward in its purpose—it rounds numeric values according to standard mathematic rules. Digits less than five are rounded down, and values greater than or equal to five are rounded up. However, because of the complexity involved in specifying the decimal place to which values should be rounded, learning to manipulate ROUND() can be tricky. Let's first look at an example using numeric literals, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required