SIN() and COS() Function in SQL Server Last Updated : 29 Sep, 2020 Comments Improve Suggest changes Like Article Like Report 1. SIN() Function : The SIN() function returns the sine of a number. Syntax : SIN(number) Parameter : Required. A numeric value. number : It is a numeric value. Returns : It returns the float_expression of the sine of a number. Example-1 : When the argument holds a positive number. SELECT SIN(5); Output : -0.95892427466313845 Example-2 : When the argument holds a negative number. SELECT SIN(-5); Output : 0.95892427466313845 Example-3 : When the PI() function is the argument. SELECT SIN(PI()); Output : 1.2246467991473532E-16 Example-4 : When the argument passed is an expression. SELECT SIN(4 * 3); Output : -0.53657291800043494 2. COS() Function The COS() function returns the cosine of a number. Syntax : COS(number) Parameter : Required. A numeric value. number : It is a numeric value. Returns : It returns the cosine of a number. Example-1 : When the argument holds a positive number. SELECT COS(4); Output : -0.65364362086361194 Example-2 : When the argument is a fractional component. SELECT COS(2.53); Output : -0.81873459927738157 Example-3 : When the PI() function is the argument. SELECT COS(PI()); Output : -1 Comment More infoAdvertise with us Next Article SIN() and COS() Function in SQL Server S sanjoy_62 Follow Improve Article Tags : SQL DBMS-SQL SQL-Server Similar Reads TAN() and COT() Function in SQL Server 1. TAN() Function : The TAN() function returns the tangent of a number. Syntax : TAN(number) Parameter : Required. A numeric value. number : It is a numeric value. Returns : It returns the float_expression of the tangent of a number. Example-1 : When the arguments holds a positive number. SELECT TAN 2 min read SIGN() Function in SQL Server In SQL Server, the SIGN() function is a mathematical function used to determine the sign of a given numeric expression. This function is particularly useful when we want to evaluate whether a number is positive, negative or zero. In this article, We will learn about SIGN() Function in SQL Server in 3 min read ATN2() Function in SQL Server 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 tangen 1 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 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 Like