public void multiplyAllValuesBy(final double multiplyBy,final int RoundType){
  for (  final T t : keySet()) {
    double val=m_values.get(t);
switch (RoundType) {
case 1:
      val=Math.floor(val * multiplyBy);
    break;
case 2:
  val=Math.round(val * multiplyBy);
break;
case 3:
val=Math.ceil(val * multiplyBy);
break;
default :
val=val * multiplyBy;
break;
}
put(t,(int)val);
}
}

public void multiplyAllValuesBy ( final double multiplyBy , final int RoundType ) { for ( final T t : keySet ( ) ) { double val = m_values . get ( t ) ; switch ( RoundType ) { case 1 : val = Math . floor ( val * multiplyBy ) ; break ; case 2 : val = Math . round ( val * multiplyBy ) ; break ; case 3 : val = Math . ceil ( val * multiplyBy ) ; break ; default : val = val * multiplyBy ; break ; } put ( t , ( int ) val ) ; } }
will multiply all values by a given double . can be used to divide all numbers , if given a fractional double ( ie : to divide by 2 , use 0 . 5 as the double )
