This documentation is archived and is not being maintained.
RADIANS (SQL Server Compact)
Returns radians when a numeric expression, in degrees, is entered.
RADIANS (numeric_expression )
-
numeric_expression
-
An expression of the exact numeric or approximate numeric data type categories, or types that are implicitly convertible to float.
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
|
The following example returns the radian value of various angles.
CREATE TABLE Radians ("30 Degrees", "60 Degrees", "90 Degrees")
INSERT INTO Radians VALUES(RADIANS(30.000000), RADIANS(60.000000), RADIANS(90.000000))
SELECT * FROM RADIANS