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

20 lines
537 B
Plaintext

[discrete]
[[esql-to_radians]]
=== `TO_RADIANS`
Converts a number in https://en.wikipedia.org/wiki/Degree_(angle)[degrees] to
https://en.wikipedia.org/wiki/Radian[radians].
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_radians]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/floats.csv-spec[tag=to_radians-result]
|===