ATN2 (Transact-SQL)

Gibt den Winkel im Bogenmaß zwischen der positiven X-Achse und dem Strahl vom Ursprung zum Punkt (x, y) zurück, wobei x und y die Werte der beiden angegebenen float-Ausdrücke sind.

Themenlink (Symbol)Transact-SQL-Syntaxkonventionen

Syntax

ATN2 ( float_expression , float_expression )

Argumente

  • float_expression
    Ist ein Ausdruck vom Datentyp float.

Rückgabetypen

float

Beispiele

Im folgenden Beispiel wird ATN2 für die angegebenen Komponenten x und y berechnet.

DECLARE @x float
DECLARE @y float
SET @x = 35.175643
SET @y = 129.44
SELECT 'The ATN2 of the angle is: ' + CONVERT(varchar,ATN2(@x,@y ))
GO

Dies ist das Resultset.

The ATN2 of the angle is: 0.265345                       

(1 row(s) affected)

Siehe auch

Verweis

CAST und CONVERT (Transact-SQL)
float und real (Transact-SQL)
Mathematische Funktionen (Transact-SQL)

Hilfe und Informationen

Informationsquellen für SQL Server 2005

Änderungsverlauf

Version Verlauf

14. April 2006

Geänderter Inhalt:
  • Die Definition der Funktion wurde korrigiert.