Permalink
Browse files

Rat.perl should provide angle brackets around fractional forms.

  • Loading branch information...
1 parent 90bd93d commit 11157e90f3d9dd427dda40d0897baf11e9760e0a @pmichaud pmichaud committed Mar 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Rat.pm
View
@@ -7,7 +7,7 @@ my class Rat is Cool does Rational[Int, Int] {
return $.numerator ~ '.0' if $d == 1;
$d div= 5 while $d %% 5;
$d div= 2 while $d %% 2;
- ($d == 1) ?? self.Str !! $.numerator ~ '/' ~ $.denominator;
+ ($d == 1) ?? self.Str !! '<' ~ $.numerator ~ '/' ~ $.denominator ~ '>';
}
}

0 comments on commit 11157e9

Please sign in to comment.