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

Re: NaN semantics

Thread Previous | Thread Next
RaFaL Pocztarski
October 10, 2001 12:35
Re: NaN semantics
Message ID:
Jonathan Scott Duff wrote:

> On Wed, Oct 10, 2001 at 10:21:38AM -0700, David Whipp wrote:
> > First this thread tells me that "123foo" will be 123 in numeric
> > context. Now I find myself wondering what "123indigo" evaluates
> > to!
> It would evaluate to 123.  If "use complex" is in effect, it would
> evaluate to 123i.  At least that's the position I'm taking at the
> moment  ;-)

123i unless of course we use nano prefix (postfix?), then it would be
0.000000123i of course. ;)

- RaFaL Pocztarski,

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