Excerpt |
---|
Computes the degrees of an input value measuring the radians of an angle. The value can be a Decimal or Integer literal or a reference to a column containing numeric values. |
- Input units are in radians.
- You can convert from degrees to radians. For more information, see RADIANS Function.
Numeric literal example:
D code |
---|
derive type:single value: ROUND(DEGREES(1.0000),4) |
Output: Generates a column containing the computation in degrees of 1.0000
radians, which is 57.2728
.
Column reference example:
D code |
---|
derive type:single value: DEGREES(myRads) as: myDegrees' |
Output: Generates the new myDegrees
column containing the conversion of the values in MyRads
column to degrees.
D code |
---|
derive type:single value: DEGREES(numeric_value) |
Argument | Required? | Data Type | Description |
---|
numeric_value | Y | string, decimal, or integer | Name of column, Decimal or Integer literal, or function returning those types to apply to the function |
numeric_value
Name of the column, Integer or Decimal literal, or function returning that data type to apply to the function.
- Missing input values generate missing results.
- Literal numeric values should not be quoted. Quoted values are treated as strings.
- Multiple columns and wildcards are not supported.
Required? | Data Type | Example Value |
---|
Yes | String (column reference) or Integer or Decimal literal | 3.14 |
Example - DEGREES and RADIANS functions
Include Page |
---|
| EXAMPLE - DEGREES and RADIANS Functions |
---|
| EXAMPLE - DEGREES and RADIANS Functions |
---|
|