--- /usr/share/octave/packages/mapping-1.4.2/degrees2dm.m 2022-02-23 20:02:09.000000000 -0500 +++ degrees2dm.m 2022-04-14 14:50:39.883803801 -0400 @@ -87,7 +87,9 @@ ## leads to some precision errors. ## remove sign from any minute where its degree part is non-zero - nnzd = logical (dm(:,1)); + nn = ~isnan (dm(:,1)); + nnzd = false (rows (dm), 1); + nnzd(nn) = logical (dm(nn,1)); dm(nnzd, 2) = abs (dm(nnzd, 2)); endif