示例#1
0
    public static IdleNumber operator *(IdleNumber n1, float f)
    {
        IdleNumber idleN = new IdleNumber(n1);

        idleN.Multiply(f);

        return(idleN);
    }
示例#2
0
    public static IdleNumber operator *(IdleNumber n1, int i)
    {
        IdleNumber idleN = new IdleNumber(n1);

        idleN.Multiply(i);

        return(idleN);
    }
示例#3
0
    //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);
    }