DEGREES¶
The DEGREES function is used to convert a given angle value from radians to degrees. It takes a single numeric argument (angle in radians) and returns the angle in degrees.
Syntax¶
value: A numeric expression (angle in radians) to be converted to degrees.
Examples¶
Let's consider a table named SingleItem with the following schema:
Insert a row into the SingleItem table:
Example 1: Using DEGREES with float values¶
Result:
Example 2: Using DEGREES with integer values¶
Result:
Example 3: Using DEGREES with zero¶
Result:
Errors¶
The DEGREES 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 DEGREES with non-numeric values¶
Error: Function requires a numeric value.
Example 5: Using DEGREES with multiple arguments¶
Error: Function expects 1 argument, but 2 were provided.