Skip to Content
Oracle PL/SQL Programming, Third Edition
book

Oracle PL/SQL Programming, Third Edition

by Steven Feuerstein, Bill Pribyl
September 2002
Intermediate to advanced
1024 pages
30h 52m
English
O'Reilly Media, Inc.
Content preview from Oracle PL/SQL Programming, Third Edition

Numeric Functions

PL/SQL implements a number of functions that are useful when working with numbers. We list those functions in Table 9-6, and describe each of them in detail in the sections that follow.

Table 9-6. PL/SQL’s built-in numeric functions

Name

Description

ABS

Returns the absolute value of a number.

ACOS

Returns the inverse cosine.

ASIN

Returns the inverse sine.

ATAN

Returns the inverse tangent.

ATAN2

Returns the inverse tangent of a value, but allows you to pass that value differently than when using ATAN.

BITAND

Performs an AND operation on the bits from two positive integer numbers.

CEIL

Returns the smallest integer greater than or equal to the specified number.

COS

Returns the cosine.

COSH

Returns the hyperbolic cosine.

EXP (n)

Returns the number e raised to the nth power, where e = 2.71828183...

FLOOR

Returns the largest integer equal to or less than the specified number.

LN (a)

Returns the natural logarithm of a.

LOG (a, b)

Returns the logarithm, base a, of b.

MOD (a, b)

Returns the remainder of a divided by b.

POWER (a, b)

Returns a raised to the bth power.

ROUND (a, [b])

Returns a rounded to b decimal places.

SIGN (a)

Returns 1 if a is positive, 0 if a is 0, and -1 if a is less than 0 (i.e., negative).

SIN

Returns the sine.

SINH

Returns the hyperbolic sine.

SQRT

Returns the square root of a number.

TAN

Returns the tangent.

TANH

Returns the hyperbolic tangent.

TRUNC (a, [b])

Returns a truncated to b decimal ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Oracle PL/SQL Programming, 6th Edition

Oracle PL/SQL Programming, 6th Edition

Steven Feuerstein, Bill Pribyl
Oracle PL/SQL Programming, 5th Edition

Oracle PL/SQL Programming, 5th Edition

Steven Feuerstein, Bill Pribyl
Oracle PL/SQL

Oracle PL/SQL

Lewis Cunningham

Publisher Resources

ISBN: 0596003811Catalog PageErrata