Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

float.compare java

        if(Float.compare(1.4f, 1.4f) == 0) {
           System.out.println("The float values are the same");
        } else
           System.out.println("The float values are not the same");
        } 
 
PREVIOUS NEXT
Tagged: #java
ADD COMMENT
Topic
Name
5+7 =