Answers for "convert double into integer"

2

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);
    }
}
Posted by: Guest on March-02-2021

Code answers related to "convert double into integer"

Browse Popular Code Answers by Language