public static double getDouble(@NotNull ServletRequest request, @NotNull String param, double defaultValue) {
    String value = request.getParameter(param);
    return NumberUtils.toDouble(value, defaultValue);
  }
public static double getDouble ( @ NotNull ServletRequest request , @ NotNull String param , double defaultValue ) { String value = request . getParameter ( param ) ; return NumberUtils . toDouble ( value , defaultValue ) ; }
Returns a request parameter as double.
@param request Request.
@param param Parameter name.
@param defaultValue Default value.
@return Parameter value or default value if it does not exist or is not a number.