COS

This page describes the COS function in Lenses SQL.

COS(numExpr)

Returns the trigonometric cosine of an expression.

Available in:

ProcessorsSQL Studio

Sample code:

USE `kafka`;
SELECT 
    COS(float),
    float 
FROM numbers-data
LIMIT 1;

Output:

{
  "value": {
    "COS": "-0.13104605979102568",
    "float": 95.95
  }
}

Last updated

Logo

2024 © Lenses.io Ltd. Apache, Apache Kafka, Kafka and associated open source project names are trademarks of the Apache Software Foundation.