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 lang syntax |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | derive type:single value: round(degrees(1.0000),4) |
---|
|
round(degrees(1.0000),4) |
Output: Returns the computation in degrees of 1.0000
radians, which is 57.2728
, rounded to 4 decimals.
Column reference example:
D lang syntax |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | derive type:single value: degrees(myRads) as: myDegrees' |
---|
|
degrees(myRads) |
Output: Returns the conversion of the values in MyRads
column to degrees.
D lang syntax |
---|
RawWrangle | true |
---|
Type | syntax |
---|
showNote | true |
---|
WrangleText | derive type:single value: degrees(numeric_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 |
---|
|