Now and then my code calculates a double and returns Infinite. The code does not get stuck and I can even see these results in a .csv file that is saved by the code (the word "Infinite" is written in the .csv file).
But I want to avoid my code to further use this infinite result, so I have to detect wether the result is infinite or not. How can I do this ?
I tried something like
if(a==Infinite){ }
or
if(a.isInfinite()){ }
but none of these seem to be proper code.