Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert this formula to ASP...

Status
Not open for further replies.

firsttube

Technical User
Apr 21, 2004
165
0
0
CA
I need this formula (Haversine formula) to be written in ASP:

a = (sin(dlat/2))^2 + cos(lat1) * cos(lat2) * (sin(dlon/2))^2
c = 2 * atan2(sqrt(a), sqrt(1-a))

I did it but I get a data type mismatch for the atan2 function.

any ideas

ft

Set the gearshift for the high gear of your soul, you've got to run like an antelope, out of control.
 
I would suggest downloading the Windows Scripting Help form microsfot.com. It will anser all your questions,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top