October 17, 2001
>>> if lat < 0:
>>>   lat = (round(int(lat/2) - 1) * 2) + 1
>>>   lat = (round(lat/2 - 1) * 2) + 1
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?