Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^5: Small Perl 6 discoveries II, Rats

by Anonymous Monk
on Sep 27, 2017 at 18:04 UTC ( #1200237=note: print w/replies, xml ) Need Help??

in reply to Re^4: Small Perl 6 discoveries II, Rats
in thread [Perl6] Small discoveries I, __DATA__

Why the difference?
> 111111111111111111111/1000000000000000000000 0.111111111111111 > .111111111111111111111 0.11111111111111111604544

Replies are listed 'Best First'.
Re^6: Small Perl 6 discoveries II, Rats
by Corion (Pope) on Sep 28, 2017 at 03:06 UTC

    I would assume that one is a rational number while the other gets constructed and represented as a floating point number. I think you can somehow look into how Perl6 represents the values but I don't know it.

      Yes, but it's the reverse of what any sane person would expect.
      > (111111111111111111111/1000000000000000000000).WHAT
      > (.111111111111111111111).WHAT

        What any sane person would expect would be replies to a post that address the content of the post instead of troll on an unrelated topic.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1200237]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2018-09-21 15:22 GMT
Find Nodes?
    Voting Booth?
    Eventually, "covfefe" will come to mean:

    Results (187 votes). Check out past polls.

    • (Sep 10, 2018 at 18:53 UTC) Welcome new users!