radians function

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime

Converts expr in degrees to radians.

Syntax

radians(expr)

Arguments

  • expr: An expression that evaluates to a numeric.

Returns

A DOUBLE.

Given an angle in degrees, returns the associated radians.

Examples

> SELECT radians(180);
 3.141592653589793