public static Double stringToScale(String value) {
		NumberFormat numberFormat = NumberFormat.getFormat("###,###");
		String[] scale2 = value.split(":");
		if (scale2.length == 1) {
			return 1.0 / numberFormat.parse(scale2[0].trim());
		} else {
			return numberFormat.parse(scale2[0].trim()) / numberFormat.parse(scale2[1].trim());
		}
	}
public static Double stringToScale ( String value ) { NumberFormat numberFormat = NumberFormat . getFormat ( "###,###" ) ; String [ ] scale2 = value . split ( ":" ) ; if ( scale2 . length == 1 ) { return 1.0 / numberFormat . parse ( scale2 [ 0 ] . trim ( ) ) ; } else { return numberFormat . parse ( scale2 [ 0 ] . trim ( ) ) / numberFormat . parse ( scale2 [ 1 ] . trim ( ) ) ; } }
Parse scale from string representation.

@param value to parse
@return scale value