public static IdleNumber operator *(IdleNumber n1, float f) { IdleNumber idleN = new IdleNumber(n1); idleN.Multiply(f); return(idleN); }
public static IdleNumber operator *(IdleNumber n1, int i) { IdleNumber idleN = new IdleNumber(n1); idleN.Multiply(i); return(idleN); }
//Manipulation with operators (*) public static IdleNumber operator *(IdleNumber n1, IdleNumber n2) { IdleNumber idleN = new IdleNumber(n1); idleN.Multiply(n2.GetNumber()); idleN.SetScale(idleN.GetScale() + n2.GetScale()); return(idleN); }