in reply to Re^3: Determining whether a value is zero.
in thread Determining whether a value is zero.

dualvar 0,"0 " is considered zero after the assignment to $y in my code. That is against the specification I fear...
UPDATE: corrected.
  • Comment on Re^4: Determining whether a value is zero.

Replies are listed 'Best First'.
Re^5: Determining whether a value is zero.
by JavaFan (Canon) on Mar 11, 2011 at 10:21 UTC
    No. In fact, after your initial reply, I particular pointed out that your first code incorrectly considers dualvar 0, "0 " to be not be a zero.

    dualvar 0, ANYTHING should be considered a zero.

Re^5: Determining whether a value is zero.
by ikegami (Patriarch) on Mar 11, 2011 at 18:11 UTC

    "0 " is considered zero after the assignment to $y in my code

    You never test "0 " after the assignment to $y. You test dualvar(0, "0 "). Please re-read my post.

      Oh I see! You are right.