|
-
Sep 2nd, 2007, 10:07 AM
#1
Thread Starter
Member
Trouble with accuracy in VB6
Hello there,
the result of the computation below in VB6 contradicts a sampe computation in a text book. Could you please plug this in for me.........?
Const dblPi as double = 3.141592
X = ((2 * dblPi * 288) / 365) * (180 / dblPi)
My result is 284.054 degree, while the text book suggests 284.16 degree.
I don't know what's going on here - I would be grateful for any feedback.
Thank you!
-
Sep 2nd, 2007, 11:34 AM
#2
Re: Trouble with accuracy in VB6
This isn't going to be an accuracy issue. Something is awry somewhere. In your calculation above, the dblPi drops out (because it is on the top and bottom of the equation), so you are left with:
X = 2 x 288 x 180 / 365 = 284.055
Either you have missed something out or there is a typo in the book.
zaza
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
|