Java Double Number Create toDouble(final String argStr)

Here you can find the source of toDouble(final String argStr)

Description

to Double

License

Apache License

Declaration

public static double toDouble(final String argStr) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static double toDouble(final String argStr) {

        double ret = Double.NaN;

        try {//from w  w  w  .ja va2s  .  co m
            ret = Double.valueOf(argStr);
        } catch (NumberFormatException nfE) {
            // consumed

        }

        return ret;
    }
}

Related

  1. toDouble(final Number n)
  2. toDouble(final Object obj)
  3. toDouble(final Object obj)
  4. toDouble(final Object value)
  5. toDouble(final Object valueRep)
  6. toDouble(final String value)
  7. toDouble(final String value)
  8. toDouble(float in1)
  9. toDouble(float[] a)