Excerpt |
---|
Computes the radians of an input value measuring degrees of an angle. The value can be a Decimal or Integer literal or a reference to a column containing numeric values. |
- A unit of 1 radian identifies the angle of a circle where the radius of the circle equals the length of the arc on the circle for that angle. This value corresponds to approximately 57.3 degrees.
- Input units are in degrees.
- You can convert from radians to degrees. For more information, see DEGREES Function.
Numeric literal example:
D code |
---|
derive type:single value: ROUND(RADIANS(57.2728),4) |
Output: Generates a column containing the computation in radians of 57.2728
rounded to four digits, which is 1.0000
.
Column reference example:
D code |
---|
derive type:single value: RADIANS(myDegrees) as: myRads' |
Output: Generates the new myRads
column containing the conversion of the values in MyDegrees
column to radians.
D code |
---|
derive type:single value: RADIANS(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 | 10 |
Example - DEGREES and RADIANS functions
Include Page |
---|
| EXAMPLE - DEGREES and RADIANS Functions |
---|
| EXAMPLE - DEGREES and RADIANS Functions |
---|
|