From 331f3ed17cd55f74ac10552f7a867c615dc81f28 Mon Sep 17 00:00:00 2001 From: drudge Date: Thu, 16 Nov 2023 08:00:47 -0800 Subject: [PATCH] snafu with MAIN arg descriptions getting printed --- ch3/ex3-4.raku | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ch3/ex3-4.raku diff --git a/ch3/ex3-4.raku b/ch3/ex3-4.raku new file mode 100644 index 0000000..fe86622 --- /dev/null +++ b/ch3/ex3-4.raku @@ -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}"; +}