snafu with MAIN arg descriptions getting printed
This commit is contained in:
parent
f12da1bc9b
commit
331f3ed17c
9
ch3/ex3-4.raku
Normal file
9
ch3/ex3-4.raku
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Take a decimal number and display it as a fraction.
|
||||||
|
# Show the numerator and denominator
|
||||||
|
use v6.d;
|
||||||
|
|
||||||
|
sub MAIN (
|
||||||
|
Rat $num, #=A decimal number to turn into a fraction
|
||||||
|
) {
|
||||||
|
say "Fractional value is {$num.numerator}/{$num.denominator}";
|
||||||
|
}
|
Loading…
Reference in a new issue