in reply to Re^7: Definition of numerically equal and rationale for 'you' == 'me'
in thread Definition of numerically equal and rationale for 'you' == 'me'

You missed the update :)

$ perl -le " print int $_ for qw/ na nan nanners in inf infant /" 0 -1.#IND -1.#IND 0 1.#INF 1.#INF

perlop mentions NaN, while bigint...

  • Comment on Re^8: Definition of numerically equal and rationale for 'you' == 'me'
  • Download Code

Replies are listed 'Best First'.
Re^9: Definition of numerically equal and rationale for 'you' == 'me'
by lutok (Scribe) on Mar 06, 2012 at 11:31 UTC

    Saw the update later. I get it, thanks :)

      Hey , say, that ought to be documented in perlnumber

Re^9: Definition of numerically equal and rationale for 'you' == 'me'
by ikegami (Patriarch) on Mar 06, 2012 at 21:58 UTC

    I didn't miss it, I misunderstood it. I thought you meant it was returning NaN for all strings, not just those starting with "nan".

    That's rather weird, but it is consistent with "123abc".

      but it is consistent with "123abc"

      Exactly !! ... that's quite correct ... but it *wouldn't* be correct if (the intention of) pemungkah's assertion (point "2.") had been correct.
      And *that* is what prompted my post in the first place.

      That point "2." of pemungkah's that I refer to begins with "Move right character by character".

      Cheers (yeah, the anger subsides),
      Rob