From e326199ba2d83e1c78579d3f5a2945126a91a5c6 Mon Sep 17 00:00:00 2001 From: holli-holzer Date: Tue, 17 Sep 2019 22:05:11 +0200 Subject: Update ch-2.p6 --- challenge-026/markus-holzer/perl6/ch-2.p6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenge-026/markus-holzer/perl6/ch-2.p6 b/challenge-026/markus-holzer/perl6/ch-2.p6 index 68e4321c19..8c53908732 100644 --- a/challenge-026/markus-holzer/perl6/ch-2.p6 +++ b/challenge-026/markus-holzer/perl6/ch-2.p6 @@ -2,7 +2,7 @@ use Test; # Rakus trigonometry functions operate on radians. So we must convert degrees to radians. # That's simple enough using a new postfix operator and high school math. -multi sub postfix:<°>( Numeric $degrees ) is looser(&prefix:<->) returns Real { $degrees * π / 180 } +multi sub postfix:<°>( Numeric $degrees ) returns Real { $degrees * π / 180 } # This implements the "simple" version of the algorithm as described on Wikipedia. # There already is an implementation of the complex math version (that uses `i`) -- cgit