[[esql-to_degrees]]
=== `TO_DEGREES`
Converts a number in https://en.wikipedia.org/wiki/Radian[radians]
to https://en.wikipedia.org/wiki/Degree_(angle)[degrees].

The input can be a single- or multi-valued field or an expression. The input
type must be of a numeric type and result is always `double`.

Example:

[source.merge.styled,esql]
----
include::{esql-specs}/floats.csv-spec[tag=to_degrees]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/floats.csv-spec[tag=to_degrees-result]
|===
