Difference between revisions of "Template:HMS2Deg"

From blackwiki
Jump to navigation Jump to search
imported>Droll
(fix tricky bug - I think there might be other problems)
imported>Tom.Reding
m (Clarified description.)
Line 3: Line 3:
 
Usage: {{tlc|HMS2Deg|hours|minutes|seconds| 5=p=precision}}.  
 
Usage: {{tlc|HMS2Deg|hours|minutes|seconds| 5=p=precision}}.  
  
This template returns an [[hour angle]], given in hours|minutes|seconds, in decimal degrees.   
+
This template converts an [[hour angle]], given in hours|minutes|seconds, to decimal degrees.   
  
So {{tlc|HMS2Deg|12|29|06.7| p=5}} returns {{HMS2Deg|12|29|06.7| p=5}}.
+
So {{tlc|HMS2Deg|12|29|06.7| p=5}} returns {{HMS2Deg|12|29|06.7| p=5}}.
  
 
Only parameter '''p''' is optional (defaults to 6).   
 
Only parameter '''p''' is optional (defaults to 6).   

Revision as of 02:12, 24 March 2012

0

Usage: {{HMS2Deg|hours|minutes|seconds|p=precision}}.

This template converts an hour angle, given in hours|minutes|seconds, to decimal degrees.

So {{HMS2Deg|12|29|06.7}} returns 187.27792.

Only parameter p is optional (defaults to 6).

See also

Template:Decdeg