|
-
Mar 8th, 2010, 04:25 AM
#1
Thread Starter
Lively Member
Re: VB6 facing problems with Sine and Cosine
 Originally Posted by koolsid
Yes that's because what you pass to sin is very imp.
Sin returns the sine of the given angle(Radians). if 0.224654 is an angle(Radians) then 0.222769070022729 is correct but if 0.224654 is degrees then you need to change it to angle(Radians) and then 0.0039209 is correct...
1 radian = 57.2957795 degrees
So
Code:
Format(Sin(0.224654 / 57.2957795), "0.0000000") will give you 0.0039209
Thanks a lot for the explanation!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|