Your skill will accomplish
what the force of many cannot
perl6 rational number problemby freakcoco (Sexton)
|on Nov 21, 2017 at 04:14 UTC||Need Help??|
freakcoco has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monk, I love perl6 number, it use rationals number by defulat.
But how about large number? can I use it by default?
some code like that:
my Rat @example = 1 , * ** 0.9999 ... Inf;
This work fine on @example[^4]
But when the number going bigger , it will stored float point by default and type check fail.
How can i fix that?
fixed question: Addition 、 Subtraction 、Multiplication 、 Division 、 Modulo
This try will fail in Multiplication and Division
How to fix it?