SQL Flow Field Guide

PI

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

PI ( )

Work example

Use SQL Server pi in a trigonometric or circle calculation.

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

Check your work Keep units consistent and avoid replacing the value with a rounded approximation.

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