SQL SERVER ATN2 TRIGONOMETRY FORMULA
--alright viewers, we will look at the ATN2 function which returns a float value for 2 varying floats
--let us begin
--firstly, to enable intellisense so the predictive text appears on the screen to do with functions, fields, and
--expressions you need to click the button above
--we are using SQL SERVER 2012 IN SSMS
--or instead of double clicking to get the popup of the function after the select clause just start typing the function name
--with trig functions it is good practice and almost always prerequisite to use radians for your values
--to execute press (F5) or click on the !Execute button
-- the float value result is 0.32175 for the radians of 90 and 180.
--that is it.
select ATN2(radians(90),radians(180));
No comments:
Post a Comment