private long normalize(IDecimal decimal, int toFactor)
  {
	if (decimal.getFactor() == toFactor)
	{
	  return decimal.getBase();
	}
	else
	{
	  return (long) (decimal.getBase() * pow(toFactor - decimal.getFactor()));
	}
  }