how to use 'Number' PMC?
chromatic
chromatic at wgz.org
Sun Oct 11 19:38:27 UTC 2009
On Sunday 11 October 2009 16:19:04 Vadim Konovalov wrote:
> the
> http://docs.parrot.org/parrot/latest/html/docs/book/pir/ch04_variables.pod.
>html reads:
>
> $P0 = new 'Integer'
> $P0 = 5
>
> $P1 = new 'String'
> $P1 = "5 birds"
>
> $P2 = new 'Number'
> $P2 = 3.14
>
> the first 2 are no problems, but I can't use the last, due to the following
> error:
>
> Class 'Number' not found
Hm, that should be 'Float'.
-- c
More information about the parrot-dev
mailing list