How to get the size, min and max of Double Data Type in Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {

    public static void main(String[] args) {

        try {

            System.out.println(Double.TYPE);
            System.out.println(Double.SIZE);
            System.out.println(Double.MIN_VALUE);
            System.out.println(Double.MAX_VALUE);

        } catch (Exception e) {
            System.out.println(e.toString());
        }
    }
}

/*
              
run:
 
double
64
4.9E-324
1.7976931348623157E308
     
 */

 



answered Dec 10, 2016 by avibootz

Related questions

1 answer 171 views
1 answer 180 views
1 answer 169 views
1 answer 171 views
1 answer 176 views
1 answer 177 views
1 answer 163 views
...