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

NaN+NaNi

Thread Previous | Thread Next
From:
David Nicol
Date:
October 11, 2001 13:41
Subject:
NaN+NaNi
Message ID:
3BC5711D.519B78F@davidnicol.com
RaFaL Pocztarski wrote:

> > First this thread tells me that "123foo" will be 123 in numeric
> > context. Now I find myself wondering what "123indigo" evaluates
> > to!

Also 123.  I think that complex numbers, if happening automatically,
would only match

    ($realpart, $imaginarypart) = /^\b(\d*\.?\d+)\+(\d*\.?\d+)i\b/

and "123indigo" does not match that.




-- 
                                           David Nicol 816.235.1187
                                            1,3,7-trimethylxanthine

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About