36 lines
621 B
Plaintext
36 lines
621 B
Plaintext
[discrete]
|
|
[[esql-to_radians]]
|
|
=== `TO_RADIANS`
|
|
|
|
*Syntax*
|
|
|
|
[source,esql]
|
|
----
|
|
TO_RADIANS(v)
|
|
----
|
|
|
|
*Parameters*
|
|
|
|
`v`::
|
|
Input value. The input can be a single- or multi-valued column or an expression.
|
|
|
|
*Description*
|
|
|
|
Converts a number in {wikipedia}/Degree_(angle)[degrees] to
|
|
{wikipedia}/Radian[radians].
|
|
|
|
*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_radians]
|
|
----
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|===
|
|
include::{esql-specs}/floats.csv-spec[tag=to_radians-result]
|
|
|===
|