Add_test, Genlog: New File ID
[gpstools.git] / tilgps
blob74eda28dda101f0502cbb04147768e996019a810
1 #!/usr/bin/env perl
3 # tilgps
4 # Converts gg°mm'ss.sss" to gg°mm.mmmmm'
6 use strict;
7 use warnings;
9 if ($#ARGV < 2) {
10 die(<<END);
12 Syntax: $0 degrees minutes secons
14 Converts gg°mm'ss.sss" to gg°mm.mmmmm'
15 Decimal values can be used.
17 END
20 my ($Deg, $Min, $Sec) = @ARGV;
21 my $new_min = $Min+($Sec/60);
23 print("$Deg°$new_min'\n");
25 __END__