Skip Menu |

This queue is for tickets about the Geography-NationalGrid CPAN distribution.

Report information
The Basics
Id: 59675
Status: open
Priority: 0/
Queue: Geography-NationalGrid

People
Owner: Nobody in particular
Requestors: bitcard [...] millsb.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.6
Fixed in: (no value)



Subject: Wrong value for PI
This package appears to use an incorrect value for PI. Line 7 of NationalGrid.pm is: use constant PI => 3.141592653897543238452643383279; ***** * I think this should be: use constant PI => 3.141592653589793238462643383279; ***** * This constant is used in the degrees-to-radians conversion functions deg2rad and rad2deg, which results in very slight inaccuracy in these conversions. The inaccuracy is estimated to cause a typical conversion from lat/long to OSGR to be out by a few millimetres, which is insignificant. This bug report is therefore purely academic.
Our fork at https://github.com/mysociety/Geography-NationalGrid fixes this issue. I'd be happy to do a new release if that was possible.