![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: decimal to fractionby no_slogan (Deacon) |
on Sep 24, 2017 at 15:30 UTC ( #1199995=note: print w/replies, xml ) | Need Help?? |
Yay Perl6. Took me a while to figure out the magic incantation, because the Perl6 documentation is nigh incomprehensible. Also, Rat() ignores the epsilon parameter if it's called on a rational. Sometimes, you'd like to find a fraction that's an approximation of another fraction without mashing it down to a float first.
In Section
Cool Uses for Perl
|
|