Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Heena Nagori   on Oct 22 In MS Office Category.

  
Question Answered By: Candace Foster   on Oct 22

Yes indeedy ...

You've declared all the variables as Long. This is integer, so you've lost
all the floating point parts.

"ct" and "sigfig" should be declared as Integer. All the rest should be
declared as Double.

Having done that, I get 10.

Note also, that the original has the statement "apo=Math.sqrt(apo);" in it,
and you didn't transcribe that to VBA. It doesn't appear to be used in
calculation of the two results you're using, but it does affect the JS's
ans[6].

Share: 

 

This Question has 20 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on 2003 - Trigonometry puzzle Or get search suggestion and latest updates.


Tagged: