Float.POSITIVE_INFINITY: This is available in java.lang.Float class of Java.
Syntax:
float java.lang.Float.POSITIVE_INFINITY
A constant holding the positive infinity of type float (i.e. Infinity).
Approach
Java
public class FloatPositiveInfinity {public static void main(String[] args) {System.out.println(Float.POSITIVE_INFINITY);}}
Output:
Infinity
No comments:
Post a Comment