You're assuming "Real" means "a float of some kind". It's not; it defines all the operations in common over non-Complex numbers (Int, Rat, Num, etc.). What you are looking for, Perl 6 calls Num.
On Sun, Sep 16, 2018 at 8:53 PM ToddAndMargo <toddandma...@zoho.com> wrote: > Hi All, > > I am confused, again: > > > $ p6 'my $x=3; dd $x' > Int $x = 3 > Makes sense > > > $ p6 'my $x; dd $x' > Any $x = Any > Makes Sense > > $ p6 'my Real $x; dd $x' > Real $x = Real > makes sense > > $ p6 'my Real $x = 3; dd $x' > Int $x = 3 > What ???? Integer ????? Did I or did I not just tell it > is was a "Real" ????? > > :'( > > -T > -- brandon s allbery kf8nh allber...@gmail.com