Export (0) Print
Expand All

RADIANS

SQL Server 2000

Returns radians when a numeric expression, in degrees, is entered.

Syntax
RADIANS ( numeric_expression )
Arguments
numeric_expression
Is an expression of the exact numeric or approximate numeric data type categories, or types that are implicitly convertible to float.
Return Types

Returns the same type as numeric_expression except for the following expressions.

Specified expression Return type
tinyint, smallint int
real/float float
Nonnumeric types that can be implicitly converted to float float
Examples

The following example returns the radian value of various angles.

CREATE TABLE Radians ("30 Degree", "60 Degrees", "90 Degrees")
INSERT INTO Radians VALUES(RADIANS(30.000000), RADIANS(60.000000), RADIANS(90.000000))
SELECT * FROM RADIANS

Show:
© 2014 Microsoft