It happens that JungleJim74 formulated :

> I am using VS2003 Professional and am trying to display the other two angles

> of a right triangle in degrees, minutes, and seconds. This is easy enough to

> do with my desktop calculator but I am having difficulty doing it in DOTNET

> code. I find the sine of an angle as .6157548327167 which is the sine of an

> angle a little over 38 degrees. How do I get this to 38 degrees ? minutes ?

> seconds? Thanks in advance for any help and have a good day.
To go from the sine of an angle to it's value, use the Math.Asin()

method. This will return a value in radians. Note: there is also a

Math.Acos() method that starts with the cosine.

There are "pi" radians in 180 degrees, so you will have to divide the

answer by Math.PI and multiply by 180.

There is no built-in method that displays this number in degress,

minutes and seconds so you will have to calculate that yourself.

The Math.Truncate() method could help here.

For more methods, see

http://msdn.microsoft.com/en-us/libr...stem.math.aspx
Hans Kesting