Please have a look at the following code
private List createTheDynamicWordList(String algorithm, double averageStat)
{
Toast.makeText(context, ""+averageStat, Toast.LENGTH_LONG).show();
}
in some cases, I get the averageStat
as a 'NaN' value. I need to check whether the number if 'NaN' or not. How can I do this? Using NumberFormatException
here didn't work.