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

RE: NaN semantics

Thread Previous | Thread Next
From:
David Whipp
Date:
October 10, 2001 10:22
Subject:
RE: NaN semantics
Message ID:
000001c151b0$05a92670$926464c4@intranet.fastchip.com
> So the imaginary numbers would be standard literals? Like
> 
>     $x=2+10i;
> 
> Great idea, as well as sqrt(-1) returning 1i istead of raising the
> exception. BTW, I was thinking once that numeral literals 
> like 4k or 10G
> (meaning 4*2**10, 10*2**30) would be very nice. What do you think?
> 
> - RaFaL Pocztarski, admin@rfl.pl


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


Dave.

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