ATN2() Function in SQL Server Last Updated : 29 Sep, 2020 Comments Improve Suggest changes Like Article Like Report In this article, we are going to cover the ATN2()function in which we will see how we can get the arc tangent of two given numbers. Let's discuss one by one. // here val1 and val2 are input. Input : ATN2(val1, val2) Output : Arc tangent result. ATN2() : It is the function that returns the arc tangent of two numbers. Syntax : ATN2(val1, val2) Parameter : This method accepts two-parameters as mentioned above and described below. val1, val2: It is the two numeric values to calculate the arc tangent. Returns - It returns the arc tangent of two numbers. Example-1 : When the arguments hold the positive number. SELECT ATN2(2.53, 5.6); Output : 0.42433793483800258 Example-2 : When the arguments hold the negative number. SELECT ATN2(-2.53, -5.6); Output : -2.7172547187517906 Example-3 : When the PI() function passing one of the arguments. SELECT ATN2(PI(), 4); Output : 0.66577375002835382 Comment More infoAdvertise with us Next Article ATN2() Function in SQL Server S sanjoy_62 Follow Improve Article Tags : SQL DBMS-SQL SQL-Server Similar Reads DAY() Function in SQL Server DAY() function : This function in SQL Server is used to return the day of the month i.e, from 1st to 31st for date stated. Features : This function is used to find the day of the month for a date specified. This function comes under Date Functions. This function accepts only one parameter i.e, date. 2 min read DATENAME() Function in SQL Server DATENAME() function : This function in SQL Server is used to find a given part of the specified date. Moreover, it returns the output value as a string. Features : This function is used to find a given part of the specified date.This function comes under Date Functions.This function accepts two para 2 min read COUNT() Function in SQL Server The COUNT() function in SQL Server is a fundamental aggregate function used to determine the number of rows that match a specific condition. Counting rows provides valuable insights into data sets such as the total number of records, distinct values, or records meeting certain criteria.In this artic 3 min read SQL Server LEN() Function SQL SERVER LEN() function calculates the number of characters of an input string, excluding the trailing spaces. LEN() Function in SQL ServerThe LEN function in the SQL Server fetches the number of characters in a string. It counts the preceding spaces but not the trailing spaces. For eg, 'SQL SERVE 2 min read LOG() Function in SQL Server The LOG() function returns the logarithm of a specified number or the logarithm of the number to the specified base. Syntax : LOG(number, base) Parameter : LOG() function accepts two-parameters as mentioned above and described below. number - This parameter hold a number which is greater than 0. bas 1 min read Like