[Jprogramming] Re: A negative-zero challenge

Tracy Harms t_b_harms at yahoo.com
Sat Jun 2 14:26:38 HKT 2007


Match also produces this effect.

I cannot make an interesting guess as to why this
comparative has this side-effect.

Tracy

session log --->

   3!:3 nz
08000000
00000000
01000000
00000000
00000000
00000080
   ''&-: nz
0
   3!:3 nz
08000000
00000000
01000000
00000000
00000000
00000000

> 
> Here's a session log:
> 
>    nz =.  0 % _1  NB. negative zero
>    3!:3 nz
> e1000000
> 08000000
> 01000000
> 00000000
> 00000000
> 00000080
>    ''&mysteryprimitive nz
> 0
>    3!:3 nz
> e1000000
> 08000000
> 01000000
> 00000000
> 00000000
> 00000000
> 
> 
> Look! the dyad mysteryprimitive cleaned up the
> negative zero
> to make it a nice shiny positive zero.  No
> assignments are performed.
> 
> What is the mysteryprimitive?  (There are several
> possible answers).
> 
> Why does it polish zeros?
> 
> Henry Rich
> 



      ___________________________________________________________________________________
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html


More information about the Programming mailing list