Answers for "convert double to intt"

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
0

how to convert double to int in java

double value = 4.3;
int convertedValue = value % 1;
Posted by: Guest on July-12-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language