RADIANS¶
The RADIANS function is used to convert a given angle value from degrees to radians. It takes a single numeric argument (angle in degrees) and returns the angle in radians.
Syntax¶
value: A numeric expression (angle in degrees) to be converted to radians.
Examples¶
Let's consider a table named SingleItem with the following schema:
Insert a row into the SingleItem table:
Example 1: Using RADIANS with float values¶
Result:
Example 2: Using RADIANS with integer values¶
Result:
Example 3: Using RADIANS with zero¶
Result:
Errors¶
The RADIANS function requires a numeric value as its argument. Using non-numeric values or more than one argument will result in an error.
Example 4: Using RADIANS with non-numeric values¶
Error: Function requires a numeric value.
Example 5: Using RADIANS with multiple arguments¶
Error: Function expects 1 argument, but 2 were provided.