resha

06-23-2005, 11:19 AM

hello.

i have a problem with VB's cos and sin compuation. it uses radians and i need a degree computation. VB treats the number i enter as radians and i want it to be treated as a degree.

if i enter the value 90, VB will compute the cosine and sine of 90 in radian mode. i need the cosine and sine of 90 in degree mode. as you well know, there is a big difference between the cosines and sines of radian and degree.

i enter the value 90.

what i get is 90 treated as radian.

cos 90 (radian) = -0.4481

sin 90 (radian) = 0.8940

what i need is 90 be treated as degrees or to be able to display the degree computations for it.

cos 90 (degree) = 0

sin 90 (degree) = 1

if i enter 60, the trigonometric functions SHOULD give the answer of:

cos 60 = 0.5

sin 60 = 0.866

and so on and so forth depending on what value i enter.

could someone please help me? :confused:

thanks.

i have a problem with VB's cos and sin compuation. it uses radians and i need a degree computation. VB treats the number i enter as radians and i want it to be treated as a degree.

if i enter the value 90, VB will compute the cosine and sine of 90 in radian mode. i need the cosine and sine of 90 in degree mode. as you well know, there is a big difference between the cosines and sines of radian and degree.

i enter the value 90.

what i get is 90 treated as radian.

cos 90 (radian) = -0.4481

sin 90 (radian) = 0.8940

what i need is 90 be treated as degrees or to be able to display the degree computations for it.

cos 90 (degree) = 0

sin 90 (degree) = 1

if i enter 60, the trigonometric functions SHOULD give the answer of:

cos 60 = 0.5

sin 60 = 0.866

and so on and so forth depending on what value i enter.

could someone please help me? :confused:

thanks.