October 05, 2001
var lat = delta * (360/TWOPI);
// lat is munged about and eventually contains -3.0
lat = (Math.round(lat/2 - 1) * 2) + 1;
WScript.echo(lat) // outputs '-3'
And my Python version is;
>>> lat = -3.0
>>> latty = (round((lat/2) - 1) * 2) + 1
So we have a rounding issue. Any suggestions? Anyone?
Posted by Andy Todd at October 05, 2001 04:13 PM