private Number parseNumber ( String numberValue , Object valueSource ) throws WrongValueTypeException { try { Double d = Double . valueOf ( numberValue ) ; return this . mathUtil . toSimplestNumber ( d ) ; } catch ( NumberFormatException e ) { throw new WrongValueTypeException ( e , numberValue , valueSource , Number . class ) ; } }
This method parses a numeric value .