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

Re: NaN semantics

Thread Previous | Thread Next
Sam Vilain
October 10, 2001 08:42
Re: NaN semantics
Message ID:
On Wed, 10 Oct 2001 11:32:02 -0400
Dan Sugalski <> wrote:

> >Great idea, as well as sqrt(-1) returning 1i istead of raising the
> >exception.
> If we do them, yep. Currently no promises there.

If you do that, make sure it has to be enabled with a pragma.  Having
complex numbers showing up in the middle of bad code is a scary concept :)

> I think the meaning of the suffices are sufficiently vague as to make me
> uncomfortable supporting them. Is 1K 1024 or 1000? I can make a good
> case  for both, and that's never a good sign.

If people want base 10, let them use "e" syntax.

1e3 = 1000
1k = 1024


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