...OK, not really an external program, but an object. This object is a third party wmp visualizer. Its compiled in Microsoft Visual Studio and Xcode/gcc using C++. It apparently uses sin and cos to do its calculations to do its visualization. My issue is it seems to be hijacking my calculations to determine gps distances between coordinates. (This is where things go wrong in the second code box below) ;==How many miles away POI Coord are from current coord $MILES = $DistCalc * ACos(Sin(