elasticsearch/docs/reference/esql/functions/to_degrees.asciidoc

36 lines
621 B
Plaintext

[discrete]
[[esql-to_degrees]]
=== `TO_DEGREES`
*Syntax*
[source,esql]
----
TO_DEGREES(v)
----
*Parameters*
`v`::
Input value. The input can be a single- or multi-valued column or an expression.
*Description*
Converts a number in {wikipedia}/Radian[radians] to
{wikipedia}/Degree_(angle)[degrees].
*Supported types*
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]
|===