what is equivalent to negative infinity in java?−∞
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For the primitive integral types, there are
Long.MIN_VALUE,Integer.MIN_VALUE, andByte.MIN_VALUE, . For double and float, it’s a little more complicated. The smallest “real” values areDouble.MIN_VALUEandFloat.MIN_VALUE, respectively. However, there are alsoDouble.NEGATIVE_INFINITYandFloat.NEGATIVE_INFINITY.