SQL Flow Field Guide

ROUND

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
Returns the following data types. Expression result Return type tinyint int smallint int int int bigint bigint decimal and numeric category (p, s) decimal(p, s) money and smallmoney category money flo

Syntax at a glance

ROUND ( numeric_expression , length [ , function ] )

Work example

Round a numeric value to the scale required by a report or calculation rule.

Set decimal precision before rounding and distinguish rounding from formatting.

Check your work ROUND can overflow when rounding to the left of the decimal point unless the input type has enough precision.

Practice SQL

Open in SQL Flow
SELECT ROUND(CAST(12.345 AS decimal(8,3)), 2) AS rounded_value;

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