// @(#)$Id: MutableMoney.C,v 1.1 1997/07/30 15:46:42 leavens Exp $

#include "MutableMoney.h"

MutableMoney::MutableMoney(double amt) throw()
  : Money(amt)
{
}

MutableMoney::MutableMoney(long int cts) throw()
  : Money(cts)
{
}

void MutableMoney::AddIn(const Money & m2) throw()
{
  // WRONG: this doesn't protect against out of range results
  cents += 100L * m2.Dollars() + m2.Cents();
}

void MutableMoney::SubtractIn(const Money & m2) throw()
{
  // WRONG: this doesn't protect against out of range results
  cents -= 100L * m2.Dollars() + m2.Cents();
}

void MutableMoney::MultiplyIn(double factor) throw()
{
  // WRONG: this doesn't protect against out of range results
  cents *= (long) factor;
}

