RADIANS (SQL Server Compact)
Returns radians when a numeric expression, in degrees, is entered.
Syntax
RADIANS (numeric_expression )
Arguments
- numeric_expression
An expression of the exact numeric or approximate numeric data type categories, or types that are implicitly convertible to float.
Return Value
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 |
Example
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