Name

SQRT

Synopsis

The SQRT function returns the square root of the input number. The specification for the SQRT function is:

FUNCTION SQRT (n NUMBER) RETURN NUMBER;

where n must be greater than or equal to 0. If n is negative, you will receive the following error:

ORA-01428: argument '-1' is out of range

Get Oracle PL/SQL Programming, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.