new Double(String stringValue) '314159E-5' : Double « java.lang « Java by API






new Double(String stringValue) '314159E-5'

  
/*
 * Output:

3.14159 = 3.14159 -> true
 * 
  
 */

public class MainClass {
  public static void main(String args[]) {
  Double d1 = new Double(3.14159);
  Double d2 = new Double("314159E-5");
  System.out.println(d1 + " = " + d2 + " -> " + d1.equals(d2));
  }
}


           
         
    
  








Related examples in the same category

1.Double.MAX_VALUE
2.Double.MIN_VALUE
3.Double.NEGATIVE_INFINITY
4.Double.POSITIVE_INFINITY
5.new Double(double value)
6.Double: byteValue()
7.Double: compare(double d1, double d2)
8.Double: compareTo(Double anotherDouble)
9.Double: doubleValue()
10.Double: equals
11.Double: floatValue()
12.Double: intValue()
13.Double: isInfinite()
14.Double: isNaN()
15.Double: parseDouble(String s)
16.Double: shortValue()
17.Double: toString(double d)
18.Double: valueOf(String stringValue)