Nathan Torkington <[EMAIL PROTECTED]> writes:

> Daniel Chetlin writes:
> > PV->NV causes that to happen, PV->IV does not. You see it in Perl
> > because addition uses NVs. It works fine if you change your example code
> > to use SvNV, giving 48.
> 
> Wow, that is weird.  Thanks.  Do you know why this is different
> for IV vs NV conversion?

It is a bug.  Look at the thread that starts with:

   http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-08/msg00645.html

Regards,
Gisle

Reply via email to