Is there any possible way to get the Sin, Tan, and Cos in Degrees instead of the VB's default of Radians? Or have a home-made funtions to do all 3 forms? (Grads, Deg, & Rad)
I haven't found anything through search so that's why I'm asking. ;)
Printable View
Is there any possible way to get the Sin, Tan, and Cos in Degrees instead of the VB's default of Radians? Or have a home-made funtions to do all 3 forms? (Grads, Deg, & Rad)
I haven't found anything through search so that's why I'm asking. ;)
From looking on the internet, the formula looks something like this:
VB Code:
MsgBox Sin(6) * (180 / 3.14159)
Maybe you could try the maths forum...
Phreak
deg = 180*rad/pi
So:
VB Code:
MsgBox 180 * (Sin(6) / 3.14159)
Phreak
You want to transform the input into sin into degrees from radians. Sin just outputs a number in the range [-1,1]
Actually, it is Sin([x deg]*pi/180). Check it with your calculator:
x = 180 in this case
In degrees: Sin(180) = 0
In radians: Sin(180pi/180) = Sin(pi) = 0
Azteched was correct