---
title: "COS"
description: "De SQL-functie COS geeft de cosinus van de opgegeven hoek terug."
language: nl
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/nl/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:54Z
license: https://documentation.invantive.eu/nl/
---

## Syntax
```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))
```

## Doel
De SQL-functie `COS` geeft de cosinus van de opgegeven hoek terug.

Zie ook [[ACOS]].

Parameters:
- Invoer (`decimal`): de hoek waarvan je de cosinus wilt berekenen.

Retourwaarde: Een getal dat de cosinus van de opgegeven hoek weergeeft, zoals `decimal`.

## Voorbeelden
`COS` berekent de cosinus van de hoek 0:
```sql
select cos(0)

--------
1
```
`COS` berekent de cosinus van de hoek 1, afgerond op vier decimalen:
```sql
select round(cos(1), 4)

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

