Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r096

D toc

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.

D s lang vs sql

D s
snippetBasic

Numeric literal example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value: round(radians(57.2728),4)

round(radians(57.2728),4)

Output: Returns the computation in radians of 57.2728 rounded to four digits, which is 1.0000.

Column reference example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value: radians(myDegrees) as: myRads'

radians(myDegrees)

Output: Generates the new myRads column containing the conversion of the values in MyDegrees column to radians.

D s
snippetSyntax

D lang syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value: radians(numeric_value)

radians(numeric_value)


ArgumentRequired?Data TypeDescription
numeric_valueYstring, decimal, or integerName of column, Decimal or Integer literal, or function returning those types to apply to the function

D s lang notes

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.

D s
snippetusage

Required?Data TypeExample Value
YesString (column reference) or Integer or Decimal literal10

D s
snippetExamples

Example - DEGREES and RADIANS functions

Include Page
EXAMPLE - DEGREES and RADIANS Functions
EXAMPLE - DEGREES and RADIANS Functions

D s also
labelmath