Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert double into integer

class DoubleToInt {
    public static void main( String args[] ) {
        double DoubleValue = 3.6987;
        int IntValue = (int) DoubleValue;
        System.out.println(DoubleValue + " is now " + IntValue);
    }
}
 
PREVIOUS NEXT
Tagged: #convert #double #integer
ADD COMMENT
Topic
Name
9+7 =