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.