Progress
SQL-92
Guide and Reference


ATAN2 Function

Returns the arctangent of the x and y coordinates specified by expression1 and expression2.

SYNTAX

ATAN2 ( expression1 , expression2 ) 

EXAMPLE

The following example illustrates two ways to use the ATAN2 function:

select atan2 (1,1) * (180/ pi()) ’Arctangent in degrees’ from syscalctable;
 
ARCTANGENT IN DEGREES
----------------------- 
45.000000000000000
 
1 record selected
 
 
select atan2 (1,1) ’Arctangent in radians’ from syscalctable;
 
ARCTANGENT IN RADIANS
----------------------- 
0.785398163397448
 
1 record selected 

NOTES

COMPATIBILITY

ODBC Compatible


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095