Check if a double is infinite in Java January 1, 2024 by Tarik You can use Double.isInfinite(double) Here’s double doc