mulAndAss method

MathFract mulAndAss(
  1. dynamic r
)

Implementation

MathFract mulAndAss( dynamic r ){
	if( r is MathFract ){
		_mi = (_mi != r._mi);
		_set( _nu * r._nu, _de * r._de );
	} else {
		double rr = ClipMath.toDouble(r);
		double t = (rr < 0.0) ? -rr : rr;
		if( t == ClipMath.toInt( t ) ){
			_mi = (_mi != (rr < 0.0));
			_set( _nu * t, _de );
		} else {
			mulAndAss( floatToFract( rr ) );
		}
	}
	return this;
}