develooper Front page | perl.perl6.language | Postings from October 2001

Re: NaN semantics

Thread Previous | Thread Next
Damian Conway
October 7, 2001 15:50
Re: NaN semantics
Message ID:

Tim wrote:
   > > Err. Are you *sure*? That's an C<until>, not a C<while>, you realize?
   > Yes. I had to use all my fingers and toes to keep everything straight,
   > but I think I did. :-) In the semantics you show (different from IEEE
   > semantics) "NaN==NaN" is true, so "NaN!=NaN" is false, which is why the
   > loop continues until a valid number is entered.

Uh huh. As I pointed out, I had missed your assumption of IEEE semantics.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About