Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.95 KB

File metadata and controls

61 lines (47 loc) · 1.95 KB
title DEGREES (Transact-SQL)
description DEGREES (Transact-SQL)
author markingmyname
ms.author maghan
ms.date 03/06/2017
ms.prod sql
ms.technology t-sql
ms.topic reference
f1_keywords
DEGREES
DEGREES_TSQL
helpviewer_keywords
DEGREES function
number of degrees
dev_langs
TSQL
monikerRange >= aps-pdw-2016 || = azuresqldb-current || = azure-sqldw-latest || >= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current

DEGREES (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi-asa-pdw]

This function returns the corresponding angle, in degrees, for an angle specified in radians.

Topic link icon Transact-SQL Syntax Conventions

Syntax

DEGREES ( numeric_expression )  

[!INCLUDEsql-server-tsql-previous-offline-documentation]

Arguments

numeric_expression
An expression of the exact numeric or approximate numeric data type category, except for the bit data type.

Return Code Values

Returns a value whose data type matches the data type of numeric_expression.

Examples

This example returns the number of degrees in an angle of PI/2 radians.

SELECT 'The number of degrees in PI/2 radians is: ' +   
CONVERT(VARCHAR, DEGREES((PI()/2)));  
GO  

[!INCLUDEssResult]

The number of degrees in PI/2 radians is 90         
  
(1 row(s) affected)  

See Also

Mathematical Functions (Transact-SQL)