opendap/src/main/java/opendap/dap/Attribute.java
private static final boolean checkDouble(String s)
    {
        try {
            //Coverity[FB.DLS_DEAD_LOCAL_STORE]
            double val = Double.parseDouble(s);
            if(DebugValueChecking) {
                DAPNode.log.debug("Attribute.checkDouble() - string: '" + s + "'   value: " + val);
            }
            return true;
        } catch (NumberFormatException e) {
            if(s.equalsIgnoreCase("nan") || s.equalsIgnoreCase("inf"))
                return true;

            return false;
        }
    }
private static final boolean checkDouble(String s)
    {
        try {
            //Coverity[FB.DLS_DEAD_LOCAL_STORE]
            double val = Double.parseDouble(s);
            if(DebugValueChecking) {
                DAPNode.log.debug("Attribute.checkDouble() - string: '" + s + "'   value: " + val);
            }
            return true;
        } catch (NumberFormatException e) {
            if(s.equalsIgnoreCase("nan") || s.equalsIgnoreCase("inf"))
                return true;

            return false;
        }
    }
Check if string is a valid Float64.

@param s the <code>String</code> to check.
@return true if the value is legal.