I'm loading the Google Maps JavaScript V3 using:
script.src = "
http://maps.google.com/maps/api/js?
v=3&sensor=false®ion=ES";
in my javaScript I have these lines:
var lat = parseFloat("39.5775");
var lng = parseFloat("2.714105");
alert("parseLatLng" + new google.maps.LatLng(lat, lng));
alert("parseLatLng with 10 decimals " + new
google.maps.LatLng(lat, lng).toUrlValue(10));
the firs alert shows :
parseLatLng(39.5775, 2.7141050000000178)
and the second shows:
parseLatLng with 10 decimals 39.5775,2.714105
Why the longitude of the LatLng object is 2.7141050000000178 and not
2.714105?
Thanks in advance