---
title: "COS"
description: "La fonction SQL COS renvoie le cosinus de l\u0027angle fourni."
language: fr
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/fr/docs/invantive-universalsql/grammar/sql-functions/cos
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/cos
updated: 2026-12-04T13:28:47Z
license: https://documentation.invantive.eu/fr/
---

## Syntaxe
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> COS[COS]:::quoted
    COS --> End((END))
```

## Objet
La fonction SQL `COS` renvoie le cosinus de l'angle fourni.

Voir également [[ACOS]].

Paramètres :
- Données d'entrée (`decimal`) : l'angle dont on souhaite calculer le cosinus.

Renvoie : un nombre représentant le cosinus de l'angle fourni, tel que `decimal`.

## Exemples
`COS` permet de calculer le cosinus de l'angle 0 :
```sql
select cos(0)

--------
1
```
`COS` calcule le cosinus de l'angle 1, arrondi à quatre décimales :
```sql
select round(cos(1), 4)

--------
0.5403
```

