radians function (Databricks SQL)

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