home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.arch      Apparently more than just beeps & boops      131,241 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 130,277 of 131,241   
   Thomas Koenig to MitchAlsup   
   Re: Tonights Tradeoff - NaN boxed precis   
   13 Nov 25 07:24:15   
   
   From: tkoenig@netcologne.de   
      
   MitchAlsup  schrieb:   
   >   
   > Thomas Koenig  posted:   
      
   >> But my favorite is   
   >>   
   >>     3 |   print *,a**(3/5)   
   >   
   > BTW, this works in eXcel where 3/5 = 0.6   
      
   C has the same semantics for integer division:   
      
   $ cat int.c && gcc int.c && ./a.out   
   #include    
   int main()   
   {   
     printf("%d\n",3/5);   
     return 0;   
   }   
   0   
      
   It's one of those things that take people by surprise, and   
   exponentiation is one of the places where it may not be seen easily.   
   --   
   This USENET posting was made without artificial intelligence,   
   artificial impertinence, artificial arrogance, artificial stupidity,   
   artificial flavorings or artificial colorants.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca