Horizontal sundial calculations: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
→‎{{header|Perl 6}}: Add Perl 6 example
m →‎{{header|Perl 6}}: comments were backwards
Line 816:
 
=={{header|Perl 6}}==
<lang perl6>sub postfix:<°> ($a) { $a * pi / 180 } # radiansdegrees to degreesradians
sub postfix:<®> ($a) { $a * 180 / pi } # degreesradians to radiansdegrees
 
my $latitude = prompt 'Enter latitude => ';