repo.or.cz
/
gpstools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add validation of GPX output to run-tests.pl
[gpstools.git]
/
tilgps
blob
b186fcd5e80dc4d3eef97b23e8ccd5d7982a3be9
1
#!/usr/bin/perl -w
2
3
# tilgps
4
# Converts gg°mm'ss.sss" to gg°mm.mmmmm'
5
6
use
strict
;
7
8
if
(
$#ARGV
<
2
) {
9
die
(
<<END);
10
11
Syntax:
$0
degrees minutes secons
12
13
Converts gg°mm'ss.sss" to gg°mm.mmmmm'
14
Decimal values can be used.
15
16
END
17
}
18
19
my
(
$Deg
,
$Min
,
$Sec
) =
@ARGV
;
20
my
$new_min
=
$Min
+(
$Sec
/
60
);
21
22
print
(
"
$Deg
°
$new_min
'
\n
"
);
23
24
__END__