in reply to Why does sv_2nv on non-number look like an NV

Because sv_2nv turns it into a double?
  • Comment on Re: Why does sv_2nv on non-number look like an NV

Replies are listed 'Best First'.
Re^2: Why does sv_2nv on non-number look like an NV
by mje (Curate) on Nov 26, 2009 at 14:02 UTC

    How can you turn "aa" into a double?

      With difficulty. You get zero
      >perl -e"print 0+'aa'" 0

        It appears to me you've taken my comment followup as a literal question rather than what I meant which is why would sv_2nv convert "aa" to a 0 double and how may I avoid this but still have it work for real numbers.

        I would like the code above to convert the sv to a double when that is reasonable and not otherwise and I'd like to know when it cannot do it.