Strange that D is printing large values as zero. Any mistake in my code?

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Thu Feb 14 07:51:39 PST 2013


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.



More information about the Digitalmars-d-learn mailing list