{"id":3680,"date":"2024-04-03T16:52:15","date_gmt":"2024-04-03T09:52:15","guid":{"rendered":"https:\/\/www.sqlservertutorial.net\/?page_id=3680"},"modified":"2024-04-08T09:03:28","modified_gmt":"2024-04-08T02:03:28","slug":"sql-server-math-functions","status":"publish","type":"page","link":"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/","title":{"rendered":"SQL Server Math Functions"},"content":{"rendered":"\n<p>This SQL Server math functions page offers a comprehensive collection of mathematical functions. These math functions empower your SQL queries with advanced computational capabilities. <\/p>\n\n\n\n<p>If you&#8217;re manipulating numerical data, performing complex calculations, or analyzing trends, SQL Server offers an array of functions to meet your mathematical needs.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Function<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-abs\/\">ABS<\/a><\/td><td>Return the absolute value of a number.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-acos\/\">ACOS<\/a><\/td><td>Return an angle (in radians) of a specified cosine.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-asin\/\">ASIN<\/a><\/td><td>Return an angle (in radians) of a specified sine.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-atan\/\">ATAN<\/a><\/td><td>Return the arctangent (in radians) of a specified tangent.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-ceiling\/\">CEILING<\/a><\/td><td>Round a number to the nearest integer greater than or equal to the input number.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-cos\/\">COS<\/a><\/td><td>Return the cosine of the specified angle, measured in radians.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-cot\/\">COT<\/a><\/td><td>Return the cotangent of the specified angle, which is the reciprocal of the tangent.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-degrees\/\">DEGREES<\/a><\/td><td>Convert an angle value in radians to degrees.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-exp\/\">EXP<\/a><\/td><td>Return the exponential value of a number.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-floor\/\">FLOOR<\/a><\/td><td>Round a number to the nearest integer less than or equal to the input value.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-log\/\">LOG<\/a><\/td><td>Return the natural logarithm of a float with a specific base (default to e).<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-pi\/\">PI<\/a><\/td><td>Return the constant value of PI, accurate to 15 digits.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-power\/\">POWER<\/a><\/td><td>Return the result of raising a number to a specific power.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-rand\/\">RAND<\/a><\/td><td>Return a random float between 0 and 1.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-radians\/\">RADIANS<\/a><\/td><td>Convert an angle value in degrees to radians.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-round\/\">ROUND<\/a><\/td><td>Return a number rounded to a specified precision.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-sign\/\">SIGN<\/a><\/td><td>Return the sign of a number, 1 for positive, -1 for negative, and 0 for zero.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-sin\/\">SIN<\/a><\/td><td>Return the sine of an angle in radians.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-sqrt\/\">SQRT<\/a><\/td><td>Return the square root of a float.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-square\/\">SQUARE<\/a><\/td><td>Return the square of a number.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/sql-server-tan\/\">TAN<\/a><\/td><td>Return the tangent of the specified angle, measured in radians.<\/td><\/tr><\/tbody><\/table><\/figure>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"3680\"\n\t\t\t\tdata-post-url=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/\"\n\t\t\t\tdata-post-title=\"SQL Server Math Functions\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"3680\"\n\t\t\t\tdata-post-url=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/\"\n\t\t\t\tdata-post-title=\"SQL Server Math Functions\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This SQL Server math functions page offers a comprehensive collection of mathematical functions. These math functions empower your SQL queries with advanced computational capabilities. <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":16,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3680","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL Server Math Functions<\/title>\n<meta name=\"description\" content=\"Discover a diverse collection of SQL Server math functions, empowering your queries with advanced computational capabilities.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Server Math Functions\" \/>\n<meta property=\"og:description\" content=\"Discover a diverse collection of SQL Server math functions, empowering your queries with advanced computational capabilities.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL Server Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-08T02:03:28+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-math-functions\\\/\",\"url\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-math-functions\\\/\",\"name\":\"SQL Server Math Functions\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/#website\"},\"datePublished\":\"2024-04-03T09:52:15+00:00\",\"dateModified\":\"2024-04-08T02:03:28+00:00\",\"description\":\"Discover a diverse collection of SQL Server math functions, empowering your queries with advanced computational capabilities.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-math-functions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-math-functions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-math-functions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Server Math Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/#website\",\"url\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/\",\"name\":\"SQL Server Tutorial\",\"description\":\"The Practical SQL Server Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Server Math Functions","description":"Discover a diverse collection of SQL Server math functions, empowering your queries with advanced computational capabilities.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/","og_locale":"en_US","og_type":"article","og_title":"SQL Server Math Functions","og_description":"Discover a diverse collection of SQL Server math functions, empowering your queries with advanced computational capabilities.","og_url":"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/","og_site_name":"SQL Server Tutorial","article_modified_time":"2024-04-08T02:03:28+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/","url":"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/","name":"SQL Server Math Functions","isPartOf":{"@id":"https:\/\/www.sqlservertutorial.net\/#website"},"datePublished":"2024-04-03T09:52:15+00:00","dateModified":"2024-04-08T02:03:28+00:00","description":"Discover a diverse collection of SQL Server math functions, empowering your queries with advanced computational capabilities.","breadcrumb":{"@id":"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlservertutorial.net\/sql-server-math-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlservertutorial.net\/"},{"@type":"ListItem","position":2,"name":"SQL Server Math Functions"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlservertutorial.net\/#website","url":"https:\/\/www.sqlservertutorial.net\/","name":"SQL Server Tutorial","description":"The Practical SQL Server Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlservertutorial.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/pages\/3680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/comments?post=3680"}],"version-history":[{"count":5,"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/pages\/3680\/revisions"}],"predecessor-version":[{"id":3846,"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/pages\/3680\/revisions\/3846"}],"wp:attachment":[{"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/media?parent=3680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}