It maybe silly question but I need to check if the value of a cell is NAN which means (1/zero) and then convert it to zero I tried the following code
for(i=0;i<5;i++){
do some calculation to get cell[i]
if(cell[i]==NAN)cells[i]=0;}
But this doesn't work because java can't recoginize the variable NAN what I should put instead of NAN Thanks in advance