devxlogo

Explore a Few Math Functions in SQL Server

Explore a Few Math Functions in SQL Server

There are a number of math functions in T-SQL. Here are a few of them:

SELECT SQRT(49) --Gives 7, Square RootSELECT PI() --Gives 3.14 .... PISELECT ROUND(15.30, 0) --Gives 15. Rounds a numberSELECT CEILING(49.32) --Gives 50. Finds the next highest Integer valueSELECT FLOOR(49.32) --Gives 49. Finds the next lowest Integer value
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist