Strange that D is printing large values as zero. Any mistake in my	code?
    Sparsh Mittal 
    sparsh0mittal at gmail.com
       
    Thu Feb 14 07:54:55 PST 2013
    
    
  
On Thursday, 14 February 2013 at 15:51:45 UTC, Joseph Rushton 
Wakeling wrote:
> On 02/14/2013 04:44 PM, Sparsh Mittal wrote:
>> Can you please tell, why it is taking DIM as zero? If I reduce 
>> DIM, it works
>> fine. It is strange.
>
> 1024 is an int value.  Write 1024L instead to ensure that the 
> calculation is performed using long.
Thanks a lot for your help.
    
    
More information about the Digitalmars-d-learn
mailing list