---
title: "COS"
description: "COS SQL\u95A2\u6570\u306F\u3001\u6307\u5B9A\u3055\u308C\u305F\u89D2\u5EA6\u306E\u30B3\u30B5\u30A4\u30F3\u3092\u8FD4\u3057\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/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:51Z
license: https://documentation.invantive.eu/ja/
---

## 構文
```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))
```

## 目的
`COS` SQL関数は、指定された角度のコサインを返します。

参照：[[ACOS]]。

パラメータ:
- 入力 (`decimal`): コサインを求める角度。

戻り値: 指定された角度のコサインを`decimal`として表す数値。

## 例
`COS` は角度 0 のコサインを取得します:
```sql
select cos(0)

--------
1
```
`COS` は角度 1 のコサインを取得し、小数点以下4桁に丸めます:
```sql
select round(cos(1), 4)

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

