protected function normalizeNumericValue($value)
    {
        if (empty($value)) {
            return 0;
        }
        if (is_string($value) && is_numeric($value)) {
            $value = (float) $value;
        }
        if (!is_numeric($value)) {
            throw new InvalidParamException("'$value' is not a numeric value.");
        }
        return $value;
    }
protected function normalizeNumericValue($value)
    {
        if (empty($value)) {
            return 0;
        }
        if (is_string($value) && is_numeric($value)) {
            $value = (float) $value;
        }
        if (!is_numeric($value)) {
            throw new InvalidParamException("'$value' is not a numeric value.");
        }
        return $value;
    }
protected function normalizeNumericValue ( $ value ) { if ( empty ( $ value ) ) { return 0 ; } if ( is_string ( $ value ) && is_numeric ( $ value ) ) { $ value = ( float ) $ value ; } if ( ! is_numeric ( $ value ) ) { throw new InvalidParamException ( "'$value' is not a numeric value." ) ; } return $ value ; }
Normalizes a numeric input value

- everything [empty](http://php.net/manual/de/function.empty.php) will result in `0`
- a [numeric](http://php.net/manual/de/function.is-numeric.php) string will be casted to float
- everything else will be returned if it is [numeric](http://php.net/manual/de/function.is-numeric.php),
otherwise an exception is thrown.

@param mixed $value the input value
@return float|integer the normalized number value
@throws InvalidParamException if the input value is not numeric.
Normalizes a numeric input value