question: private double parseDouble ( String value , String setting ) { double number ; int multiplier = getMultiplier ( value ) ; if ( multiplier > 1 ) { value = value . replaceAll ( "[^\\d.]" , "" ) ; } try { number = Double . parseDouble ( value ) * multiplier ; } catch ( NumberFormatException e ) { throw new SettingsError ( "Invalid numeric setting '" + value + "' for '" + setting + "'\n" + e . getMessage ( ) ) ; } return number ; }
target:  Parses a double value from a String valued setting. Supports kilo (k), mega (M) and giga (G) suffixes.