On Mon, 02 Oct 2017 18:09:45 -0700, alex.jakime...@gmail.com wrote:
> Right, because it's a Rat.
>
> sub foo(num64 $scale = 1.0) {}; say foo # This type cannot unbox to a
> native
> number: P6opaque, Rat
> sub foo(num64 $scale = 1.0.Num) {}; say foo # Nil
>
No need for .Num, just write it as 1e0
On Mon, 02 Oct 2017 18:09:45 -0700, alex.jakime...@gmail.com wrote:
> Right, because it's a Rat.
>
> sub foo(num64 $scale = 1.0) {}; say foo # This type cannot unbox to a
> native
> number: P6opaque, Rat
> sub foo(num64 $scale = 1.0.Num) {}; say foo # Nil
>
No need for .Num, just write it as 1e0