say is not the way to debug in perl6 as it is in perl5, and Num values are native in perl6, so Math::Float128 is a module that is nut useful to link to perl6 with Inline::Perl5:
$ perl6 -e'my $f = 1.2345; $f.say; $f.perl.say; $f.gist.say; $f.nude.say; dd $f'
1.2345
1.2345
1.2345
(2469 2000)
Rat $f = 1.2345
$ perl6 -e'my $f = 1 / 3.33; $f.say; $f.perl.say; $f.gist.say; $f.nude.say; dd $f'
0.300300
<100/333>
0.300300
(100 333)
Rat $f = <100/333>
$ perl6 -e'say π ** 25'
2683779414317.76
$ perl6 -e'.say for π ** 259'
5.77852541576782e+128
Enjoy, Have FUN! H.Merijn
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|