SQL Flow Field Guide

COS

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

math

What changes

Input
numeric arguments
Output or change
numeric value
Return type
float

Syntax at a glance

COS ( float_expression )

Work example

Calculate cosine for an angle in radians.

Test domain limits and the largest expected input. Keep degree and radian units explicit.

Check your work Convert degree input with RADIANS and confirm the downstream unit.

Open Microsoft Learn for full syntax, permissions, and details for your version.