Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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

In reply to Re: [perl6] More Inline::Perl5 musings by Tux
in thread [perl6] More Inline::Perl5 musings by syphilis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • 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.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found