petdance/scratch — Issue #159: PMC to Float conversion not working as documented
Author: petdance
Created: 2011-11-14 06:07:00+00:00
State: open
Labels: bug, core, Pri-normal, Sev-medium

Here are lines 1101-1104 of ''docs/book/pir/ch04_variables.pod'':
```
$P1 = box "5 birds"
$S1 = $P1 # the string "5 birds"
$I1 = $P1 # the integer 5
$N1 = $P1 # the number 5.0
```
On the basis of the comments, if I were to `say` each of the 4 variables receiving assignment, I would expect the output to be:
```
5 birds
5 birds
5
5.0
```
This is not the case.
```
[study] 511 $ cat 5birds.pir
.sub main :main
$P1 = box "5 birds"
$S1 = $P1
$I1 = $P1
$N1 = $P1
say $P1
say $S1
say $I1
say $N1
.end
[study] 512 $ ./parrot 5birds.pir
5 birds
5 birds
5
0
```
Is this merely a documentation error? Or is it something more serious?

Thank you very much.

kid51 (working his way thru the PIR book)

Originally http://trac.parrot.org/parrot/ticket/1168