Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl6
    
    ...
    my $c = FatRat.new($a, $b);
    say "Real \$c: $c";
    say "Rational \$c: { $c.numerator } / { $c.denominator }";
    
  2. or download this
    Product of array @a = 112250880
    Product of array @b = 349779200
    Real $c: 0.3209193
    Rational $c: 87696 / 273265