to_radians.asciidoc 621 B

1234567891011121314151617181920212223242526272829303132333435
  1. [discrete]
  2. [[esql-to_radians]]
  3. === `TO_RADIANS`
  4. *Syntax*
  5. [source,esql]
  6. ----
  7. TO_RADIANS(v)
  8. ----
  9. *Parameters*
  10. `v`::
  11. Input value. The input can be a single- or multi-valued column or an expression.
  12. *Description*
  13. Converts a number in {wikipedia}/Degree_(angle)[degrees] to
  14. {wikipedia}/Radian[radians].
  15. *Supported types*
  16. The input type must be of a numeric type and result is always `double`.
  17. *Example*
  18. [source.merge.styled,esql]
  19. ----
  20. include::{esql-specs}/floats.csv-spec[tag=to_radians]
  21. ----
  22. [%header.monospaced.styled,format=dsv,separator=|]
  23. |===
  24. include::{esql-specs}/floats.csv-spec[tag=to_radians-result]
  25. |===